move vec to generated
This commit is contained in:
@@ -9,7 +9,7 @@ SAMPLER2D(s_texColor, 0);
|
||||
SAMPLER3D(s_ditherSampler, 1);
|
||||
SAMPLER2D(s_rampSampler, 2);
|
||||
uniform vec4 u_time;
|
||||
uniform vec4 u_testColor;
|
||||
uniform vec4 u_dotColor;
|
||||
uniform vec4 u_texInfo;
|
||||
uniform vec4 u_baseColor;
|
||||
|
||||
@@ -92,7 +92,7 @@ void main()
|
||||
float testSpeed = 1.0;
|
||||
vec3 testOffset = vec3(0.0, 0.0, 50.0);
|
||||
float3 lightPos = vec3(sin(u_time.x * testSpeed) * testRadius, 5.0, cos(u_time.x * testSpeed) * testRadius);
|
||||
vec3 texColor = u_testColor.x > 0.1 ? u_testColor.xyz : texture2D(s_texColor, v_uv0).xyz;
|
||||
vec3 texColor = u_dotColor.x > 0.1 ? u_dotColor.xyz : texture2D(s_texColor, v_uv0).xyz;
|
||||
|
||||
// lighting
|
||||
// float brightness = calcBrightness(lightPos, v_wpos, v_normal);
|
||||
|
||||
Reference in New Issue
Block a user