mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
11 lines
139 B
Text
11 lines
139 B
Text
|
struct v2f {
|
||
|
float f;
|
||
|
};
|
||
|
varying float var;
|
||
|
void main() {
|
||
|
v2f i;
|
||
|
i.f = var;
|
||
|
v2f i2 = i;
|
||
|
gl_FragColor = vec4(abs(i2.f));
|
||
|
}
|