mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 23:11:01 +01:00
24 lines
430 B
GLSL
24 lines
430 B
GLSL
#version 320 es
|
|
|
|
precision highp float;
|
|
precision highp int;
|
|
|
|
struct PushConstants {
|
|
float multiplier;
|
|
};
|
|
struct FragmentIn {
|
|
vec4 color;
|
|
};
|
|
uniform PushConstants pc;
|
|
|
|
layout(location = 0) smooth in vec4 _vs2fs_location0;
|
|
layout(location = 0) out vec4 _fs2p_location0;
|
|
|
|
void main() {
|
|
FragmentIn in_ = FragmentIn(_vs2fs_location0);
|
|
float _e4 = pc.multiplier;
|
|
_fs2p_location0 = (in_.color * _e4);
|
|
return;
|
|
}
|
|
|