double limits and add x-axis location adjustment

This commit is contained in:
hizzlekizzle 2015-11-29 13:33:23 -06:00
parent 25ce3086dd
commit f7ff48d1ab

View File

@ -1,15 +1,18 @@
#pragma parameter height "CocktailTable Image Height" -1.145 -3.0 3.0 0.01
#pragma parameter width "CocktailTable Image Width" 2.0 1.0 5.0 0.05
#pragma parameter location "CocktailTable Image Location" 0.75 -2.0 2.0 0.005
#pragma parameter height "Image Height" -1.145 -6.0 6.0 0.01
#pragma parameter width "Image Width" 2.0 0.0 10.0 0.05
#pragma parameter location_y "Image Location Y" 0.75 -4.0 4.0 0.005
#pragma parameter location_x "Image Location X" -0.5 -4.0 4.0 0.005
#ifdef PARAMETER_UNIFORM
uniform float height;
uniform float width;
uniform float location;
uniform float location_y;
uniform float location_x;
#else
#define height -1.145
#define width 2.0
#define location 0.75
#define location_y 0.75
#define location_x -0.5
#endif
// GLSL shader autogenerated by cg2glsl.py.
@ -77,10 +80,10 @@ void main()
_oColor = COLOR;
_r0024 = VertexCoord.x*vec2( 0.00000000E+00, 1.00000000E+00);
_r0024 = _r0024 + VertexCoord.y*vec2( -1.00000000E+00, 0.00000000E+00);
_otexCoord1 = _r0024 + vec2( location, -5.00000000E-01);
_otexCoord1 = _r0024 + vec2( location_y, location_x);
_r0026 = VertexCoord.x*vec2( 0.00000000E+00, 1.00000000E+00);
_r0026 = _r0026 + VertexCoord.y*vec2( -1.00000000E+00, 0.00000000E+00);
_otexCoord2 = -(_r0026 + vec2( 1.0 - location, -5.00000000E-01));
_otexCoord2 = -(_r0026 + vec2( 1.0 - location_y, -1.0 - location_x));
gl_Position = _r0022;
COL0 = COLOR;
TEX0.xy = _otexCoord1;