diff options
Diffstat (limited to 'examples/rendering-basic-light/shaders/rendering-basic-light.frag')
-rw-r--r-- | examples/rendering-basic-light/shaders/rendering-basic-light.frag | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/examples/rendering-basic-light/shaders/rendering-basic-light.frag b/examples/rendering-basic-light/shaders/rendering-basic-light.frag index 6f561531..ce202e32 100644 --- a/examples/rendering-basic-light/shaders/rendering-basic-light.frag +++ b/examples/rendering-basic-light/shaders/rendering-basic-light.frag @@ -1,6 +1,7 @@ -varying mediump vec3 vNormal; -varying mediump vec3 vFragPos; -uniform mediump vec3 viewPos; // custom uniform +//@version 100 + +INPUT mediump vec3 vNormal; +INPUT mediump vec3 vFragPos; struct Material { @@ -16,8 +17,12 @@ struct Light mediump vec3 color; }; -uniform Material material; // custom uniform -uniform Light light; // custom uniform +UNIFORM_BLOCK CustomFrag +{ +UNIFORM mediump vec3 viewPos; // custom uniform +UNIFORM Material material; // custom uniform +UNIFORM Light light; // custom uniform +}; void main() { |