You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 rivejä
356 B

  1. {$FUNC 'vec4' 'CalcColor' 'vec4' 'seed' $INLINE}
  2. {$UNIFORM 'sampler2D' 'uTexture0'}
  3. {$UNIFORM 'sampler2D' 'uTexture1'}
  4. vec4 tex0 = texture2D(uTexture0, texCoord);
  5. vec4 tex1 = texture2D(uTexture1, texCoord);
  6. return tex0 * tex1 * uColor;
  7. {$END}
  8. {$MAIN}
  9. {$UNIFORM 'vec4' 'uColor'}
  10. gl_FragColor = {$CALL CalcColor 'uColor'};
  11. {$END}