Skip to content

Commit

Permalink
don't use time in shader_material example
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Aug 31, 2022
1 parent bdffd83 commit ab821cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions assets/shaders/custom_material.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ var base_color_sampler: sampler;
fn fragment(
#import bevy_pbr::mesh_vertex_output
) -> @location(0) vec4<f32> {
let time = sin(globals.time) * 0.5 + 0.5;
return material.color
* textureSample(base_color_texture, base_color_sampler, uv)
* vec4<f32>(time, time, time, 1.0);
return material.color * textureSample(base_color_texture, base_color_sampler, uv);
}

0 comments on commit ab821cb

Please sign in to comment.