Scene: Add Android/iOS shader defines
This commit is contained in:
parent
adbebbfcd7
commit
aaf89d2589
1 changed files with 5 additions and 0 deletions
|
@ -549,6 +549,11 @@ proc get_lighting_code_defines*(self: Scene): seq[string] =
|
||||||
"#define MAX_CUBE_MAPS " & $(if self.isNil: 0 else: self.max_cubemaps),
|
"#define MAX_CUBE_MAPS " & $(if self.isNil: 0 else: self.max_cubemaps),
|
||||||
"#define MAX_SPHERICAL_HARMONICS " & $(if self.isNil: 0 else: self.max_spherical_harmonics),
|
"#define MAX_SPHERICAL_HARMONICS " & $(if self.isNil: 0 else: self.max_spherical_harmonics),
|
||||||
"#define USE_SHADOW_SAMPLERS " & $(USE_SHADOW_SAMPLERS.int),
|
"#define USE_SHADOW_SAMPLERS " & $(USE_SHADOW_SAMPLERS.int),
|
||||||
|
when defined(ios):
|
||||||
|
"#define MYOU_IOS"
|
||||||
|
elif defined(android):
|
||||||
|
"#define MYOU_ANDROID"
|
||||||
|
else: ""
|
||||||
]
|
]
|
||||||
|
|
||||||
proc get_lighting_code*(self: Scene): string =
|
proc get_lighting_code*(self: Scene): string =
|
||||||
|
|
Loading…
Reference in a new issue