opengl.shaders: Allow up to 50 lights in fragment shaders.
This commit is contained in:
@@ -16,7 +16,7 @@ uniform mat3 inverse_model_Rotation;
|
|||||||
uniform vec3 camera_Site;
|
uniform vec3 camera_Site;
|
||||||
uniform vec3 specular_Color; // The materials specular color.
|
uniform vec3 specular_Color; // The materials specular color.
|
||||||
uniform int light_Count;
|
uniform int light_Count;
|
||||||
uniform light Lights [10];
|
uniform light Lights [50];
|
||||||
|
|
||||||
|
|
||||||
in vec3 frag_Site;
|
in vec3 frag_Site;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ uniform vec3 camera_Site;
|
|||||||
uniform vec3 specular_Color; // The materials specular color.
|
uniform vec3 specular_Color; // The materials specular color.
|
||||||
uniform sampler2D Texture;
|
uniform sampler2D Texture;
|
||||||
uniform int light_Count;
|
uniform int light_Count;
|
||||||
uniform light Lights [10];
|
uniform light Lights [50];
|
||||||
|
|
||||||
|
|
||||||
in vec3 frag_Site;
|
in vec3 frag_Site;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ uniform vec3 camera_Site;
|
|||||||
uniform vec3 specular_Color; // The materials specular color.
|
uniform vec3 specular_Color; // The materials specular color.
|
||||||
//uniform sampler2D Texture;
|
//uniform sampler2D Texture;
|
||||||
uniform int light_Count;
|
uniform int light_Count;
|
||||||
uniform light Lights [10];
|
uniform light Lights [50];
|
||||||
|
|
||||||
|
|
||||||
in vec3 frag_Site;
|
in vec3 frag_Site;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ uniform vec3 camera_Site;
|
|||||||
uniform vec3 specular_Color; // The materials specular color.
|
uniform vec3 specular_Color; // The materials specular color.
|
||||||
//uniform sampler2D Texture;
|
//uniform sampler2D Texture;
|
||||||
uniform int light_Count;
|
uniform int light_Count;
|
||||||
uniform light Lights [10];
|
uniform light Lights [50];
|
||||||
|
|
||||||
|
|
||||||
in vec3 frag_Site;
|
in vec3 frag_Site;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ uniform vec3 camera_Site;
|
|||||||
uniform vec3 specular_Color; // The materials specular color.
|
uniform vec3 specular_Color; // The materials specular color.
|
||||||
uniform sampler2D Texture;
|
uniform sampler2D Texture;
|
||||||
uniform int light_Count;
|
uniform int light_Count;
|
||||||
uniform light Lights [10];
|
uniform light Lights [50];
|
||||||
|
|
||||||
|
|
||||||
in vec3 frag_Site;
|
in vec3 frag_Site;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ uniform vec3 camera_Site;
|
|||||||
uniform vec3 specular_Color; // The materials specular color.
|
uniform vec3 specular_Color; // The materials specular color.
|
||||||
|
|
||||||
uniform int light_Count;
|
uniform int light_Count;
|
||||||
uniform light Lights [10];
|
uniform light Lights [50];
|
||||||
|
|
||||||
|
|
||||||
in vec3 frag_Site;
|
in vec3 frag_Site;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ uniform vec3 camera_Site;
|
|||||||
uniform vec3 specular_Color; // The materials specular color.
|
uniform vec3 specular_Color; // The materials specular color.
|
||||||
|
|
||||||
uniform int light_Count;
|
uniform int light_Count;
|
||||||
uniform light Lights [10];
|
uniform light Lights [50];
|
||||||
|
|
||||||
|
|
||||||
in vec3 frag_Site;
|
in vec3 frag_Site;
|
||||||
|
|||||||
Reference in New Issue
Block a user