Revert define on shader, not suitable glslcc

This commit is contained in:
halx99 2023-07-14 23:21:51 +08:00
parent 3251c7f621
commit 83a830d011
3 changed files with 0 additions and 40 deletions

View File

@ -25,16 +25,6 @@
const char* CC3D_colorNormal_frag = R"(
#ifndef MAX_DIRECTIONAL_LIGHT_NUM
#define MAX_DIRECTIONAL_LIGHT_NUM 0
#endif
#ifndef MAX_POINT_LIGHT_NUM
#define MAX_POINT_LIGHT_NUM 0
#endif
#ifndef MAX_SPOT_LIGHT_NUM
#define MAX_SPOT_LIGHT_NUM 0
#endif
#if (MAX_DIRECTIONAL_LIGHT_NUM > 0)
uniform vec3 u_DirLightSourceColor[MAX_DIRECTIONAL_LIGHT_NUM];
uniform vec3 u_DirLightSourceDirection[MAX_DIRECTIONAL_LIGHT_NUM];

View File

@ -25,16 +25,6 @@
const char* CC3D_colorNormalTexture_frag = R"(
#ifndef MAX_DIRECTIONAL_LIGHT_NUM
#define MAX_DIRECTIONAL_LIGHT_NUM 0
#endif
#ifndef MAX_POINT_LIGHT_NUM
#define MAX_POINT_LIGHT_NUM 0
#endif
#ifndef MAX_SPOT_LIGHT_NUM
#define MAX_SPOT_LIGHT_NUM 0
#endif
#if (MAX_DIRECTIONAL_LIGHT_NUM > 0)
uniform vec3 u_DirLightSourceColor[MAX_DIRECTIONAL_LIGHT_NUM];
uniform vec3 u_DirLightSourceDirection[MAX_DIRECTIONAL_LIGHT_NUM];

View File

@ -25,16 +25,6 @@
const char* CC3D_positionNormalTexture_vert = R"(
#ifndef MAX_DIRECTIONAL_LIGHT_NUM
#define MAX_DIRECTIONAL_LIGHT_NUM 0
#endif
#ifndef MAX_POINT_LIGHT_NUM
#define MAX_POINT_LIGHT_NUM 0
#endif
#ifndef MAX_SPOT_LIGHT_NUM
#define MAX_SPOT_LIGHT_NUM 0
#endif
#ifdef USE_NORMAL_MAPPING
#if (MAX_DIRECTIONAL_LIGHT_NUM > 0)
uniform vec3 u_DirLightSourceDirection[MAX_DIRECTIONAL_LIGHT_NUM];
@ -154,16 +144,6 @@ void main(void)
const char* CC3D_skinPositionNormalTexture_vert = R"(
#ifndef MAX_DIRECTIONAL_LIGHT_NUM
#define MAX_DIRECTIONAL_LIGHT_NUM 0
#endif
#ifndef MAX_POINT_LIGHT_NUM
#define MAX_POINT_LIGHT_NUM 0
#endif
#ifndef MAX_SPOT_LIGHT_NUM
#define MAX_SPOT_LIGHT_NUM 0
#endif
#ifdef USE_NORMAL_MAPPING
#if (MAX_DIRECTIONAL_LIGHT_NUM > 0)
uniform vec3 u_DirLightSourceDirection[MAX_DIRECTIONAL_LIGHT_NUM];