get some more variables from storage
This commit is contained in:
parent
a405a24077
commit
6f5be26ab5
3 changed files with 58 additions and 17 deletions
|
|
@ -27,12 +27,7 @@ fn setup(
|
|||
) {
|
||||
let transform = Transform::from_xyz(0.0, 0.0, 0.0);
|
||||
|
||||
let storage = buffers.add(ShaderStorageBuffer::from(MandelbulbStorage {
|
||||
mesh_translation: transform.translation,
|
||||
model_inverse: transform.compute_matrix().inverse(),
|
||||
power: 8.0,
|
||||
iterations: 32,
|
||||
}));
|
||||
let storage = buffers.add(ShaderStorageBuffer::from(MandelbulbStorage::default()));
|
||||
|
||||
commands.spawn((
|
||||
Mesh3d(meshes.add(Cuboid::new(2.0, 2.0, 2.0))),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue