texturedFragmentShader top-level property

ShaderObject texturedFragmentShader
final

Implementation

final ShaderObject texturedFragmentShader = ShaderObject("TexturedF")
  ..AddVaryingVars([vTexUV])
  ..AddUniformVars([uColor, uTexture])
  ..SetBodyWithMain([
    "${oFragColor} = texture(${uTexture}, ${vTexUV}) + vec4( ${uColor}, 0.0 );"
  ]);