Skip to content

Commit

Permalink
Simplified glsl (#4191)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlBateman authored Apr 10, 2022
1 parent 9fa545e commit 1dd7310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/examples/user-interface/custom-shader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ uniform float amount;
void main(void)
{
vec4 color = texture2D(uDiffuseMap, vUv0);
vec3 roloc = vec3(1.0 - color.r, 1.0 - color.g, 1.0 - color.b);
vec3 roloc = 1.0 - color.rgb;
gl_FragColor = vec4(mix(color.rgb, roloc, amount), color.a);
}`
};
Expand Down

0 comments on commit 1dd7310

Please sign in to comment.