mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-28 22:29:36 +00:00
Doubled phosphor life, added comment on required final stage fix for tomorrow.
This commit is contained in:
parent
59c07f7ddd
commit
23311d633b
@ -593,7 +593,7 @@ char *OpenGLOutputBuilder::get_output_vertex_shader(const char *header)
|
|||||||
"iSrcCoordinatesVarying = srcCoordinates;"
|
"iSrcCoordinatesVarying = srcCoordinates;"
|
||||||
"srcCoordinatesVarying = vec2(srcCoordinates.x / textureSize.x, (srcCoordinates.y + 0.5) / textureSize.y);"
|
"srcCoordinatesVarying = vec2(srcCoordinates.x / textureSize.x, (srcCoordinates.y + 0.5) / textureSize.y);"
|
||||||
"float age = (timestampBase[int(lateralAndTimestampBaseOffset.y)] - timestamp) / ticksPerFrame;"
|
"float age = (timestampBase[int(lateralAndTimestampBaseOffset.y)] - timestamp) / ticksPerFrame;"
|
||||||
"alpha = exp(-age) + 0.2;"
|
"alpha = exp(-age*0.5) + 0.2;"
|
||||||
|
|
||||||
"vec2 floatingPosition = (position / positionConversion) + lateralAndTimestampBaseOffset.x * scanNormal;"
|
"vec2 floatingPosition = (position / positionConversion) + lateralAndTimestampBaseOffset.x * scanNormal;"
|
||||||
"vec2 mappedPosition = (floatingPosition - boundsOrigin) / boundsSize;"
|
"vec2 mappedPosition = (floatingPosition - boundsOrigin) / boundsSize;"
|
||||||
@ -621,6 +621,7 @@ char *OpenGLOutputBuilder::get_rgb_output_fragment_shader()
|
|||||||
|
|
||||||
char *OpenGLOutputBuilder::get_composite_output_fragment_shader()
|
char *OpenGLOutputBuilder::get_composite_output_fragment_shader()
|
||||||
{
|
{
|
||||||
|
// "const mat3 yuvToRGB = mat3(1.0, 1.0, 1.0, 0.0, -0.39465, 2.03211, 1.13983, -0.58060, 0.0);"
|
||||||
return get_output_fragment_shader("", "uniform sampler2D texID;", "texture(texID, srcCoordinatesVarying).rgb");
|
return get_output_fragment_shader("", "uniform sampler2D texID;", "texture(texID, srcCoordinatesVarying).rgb");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user