瀏覽代碼

Use the vertex color as part of the base shader in GLSL330

pull/4431/head
Jeffery Myers 2 月之前
父節點
當前提交
72e5a41101
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      examples/shaders/resources/shaders/glsl330/base.fs

+ 4
- 1
examples/shaders/resources/shaders/glsl330/base.fs 查看文件

@ -20,6 +20,9 @@ void main()
// NOTE: Implement here your fragment shader code
finalColor = texelColor*colDiffuse;
// final color is the color from the texture
// times the tint color (colDiffuse)
// times the fragment color (interpolated vertex color)
finalColor = texelColor*colDiffuse*fragColor;
}

Loading…
取消
儲存