Skip to content

Commit

Permalink
Update assets/shaders/custom_material.wgsl
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Swain <robert.swain@gmail.com>
  • Loading branch information
IceSentry and superdump authored Jul 26, 2022
1 parent 4a7d7bb commit 6719d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/shaders/custom_material.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var base_color_sampler: sampler;
fn fragment(
#import bevy_pbr::mesh_vertex_output
) -> @location(0) vec4<f32> {
var time = (sin(globals.time) + 1.0) / 2.0;
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);
Expand Down

0 comments on commit 6719d22

Please sign in to comment.