浏览代码

Uniform initialization not supported on GLSL 100

pull/951/head
raysan5 5 年前
父节点
当前提交
20257f3e49
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. +8
    -8
      examples/core/resources/distortion100.fs

+ 8
- 8
examples/core/resources/distortion100.fs 查看文件

@ -11,14 +11,14 @@ uniform sampler2D texture0;
uniform vec4 colDiffuse; uniform vec4 colDiffuse;
// NOTE: Add here your custom variables // NOTE: Add here your custom variables
uniform vec2 nf">leftLensCenter = vec2(0.288, 0.5);
uniform vec2 nf">rightLensCenter = vec2(0.712, 0.5);
uniform vec2 nf">leftScreenCenter = vec2(0.25, 0.5);
uniform vec2 nf">rightScreenCenter = vec2(0.75, 0.5);
uniform vec2 nf">scale = vec2(0.25, 0.45);
uniform vec2 nf">scaleIn = vec2(4, 2.2222);
uniform vec4 nf">hmdWarpParam = vec4(1, 0.22, 0.24, 0);
uniform vec4 nf">chromaAbParam = vec4(0.996, -0.004, 1.014, 0.0);
uniform vec2 err">leftLensCenter;
uniform vec2 err">rightLensCenter;
uniform vec2 err">leftScreenCenter;
uniform vec2 err">rightScreenCenter;
uniform vec2 err">scale;
uniform vec2 err">scaleIn;
uniform vec4 err">hmdWarpParam;
uniform vec4 err">chromaAbParam;
void main() void main()
{ {

正在加载...
取消
保存