For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| /// While implementing a tile based light culling shader, I stumbled uppon the bachelor thesis from Jonathan W. Hale: | |
| /// "Dual-Cone View Culling for Virtual Reality Applications" (2018). While lookin at his final version, I | |
| /// realized that his code could be even further simplified, if the cone's tip is the origin of the coordinate system. | |
| /// By creating a "world to cone view space" transformation matrix, that aligns the code to the positive +Z axis and | |
| /// also set's the cone's tip as the origin, this matrix can then be used to transform the world coordinates into the | |
| /// "cone view space". The following code uses a left handed coordinate system. | |
| /// The test itself only uses 10 instructions: | |
| /// | |
| /// - 2 scalar multiplications | |
| /// - 2 additions |
| /// Trait to extend hecs to support upsert operations. | |
| /// ```rust | |
| /// use Upsert; | |
| /// let mut world = hecs::World::new(); | |
| /// struct s(u32); | |
| /// | |
| /// world.upsert(player_entity, |mut c| c.0 = 42, s(42))?; | |
| /// ``` | |
| pub trait Upsert { | |
| fn upsert<F, T: 'static>(&mut self, entity: Entity, update: F, insert: T) -> Result<()> |
| thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Stage { flag: VERTEX, error: Input { location: 4, error: WrongType } }', C:\Users\Username\.cargo\git\checkouts\wgpu-rs-40ea39809c03c5d8\7b866b1\src\backend\direct.rs:460:9 |
| This might also work for other STM32 chips. I use the HAL, so it also might be supported by your chip. | |
| To use the Backup SRAM (most of the time 4 Kb), you need to add a backup power source (like a battery or a supercap) | |
| to the VBAT pin of your STM32. I use a simple CR2032 battery. | |
| Use following code to get access to the Backup SRAM: | |
| __HAL_RCC_PWR_CLK_ENABLE(); | |
| HAL_PWR_EnableBkUpAccess(); | |
| __HAL_RCC_BKPSRAM_CLK_ENABLE(); |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt