Cycles fallback display shader previously did not use viewport. This would crash or cause the display not to show when using GPU backends other than OpenGL, if another display shader was unavailable. Now use ShaderCreateInfo for Cycles fallback display. Authored by Apple: Michael Parkin-White Ref #96261 Pull Request #104987
12 lines
196 B
GLSL
12 lines
196 B
GLSL
|
|
vec2 normalize_coordinates()
|
|
{
|
|
return (vec2(2.0) * (pos / fullscreen)) - vec2(1.0);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(normalize_coordinates(), 0.0, 1.0);
|
|
texCoord_interp = texCoord;
|
|
}
|