From aaf89d25894fca180d40aa1445263c6f037cf51f Mon Sep 17 00:00:00 2001 From: DiThi Date: Tue, 18 Mar 2025 14:23:30 +0100 Subject: [PATCH] Scene: Add Android/iOS shader defines --- src/scene.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/scene.nim b/src/scene.nim index da587fc..38c3156 100644 --- a/src/scene.nim +++ b/src/scene.nim @@ -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_SPHERICAL_HARMONICS " & $(if self.isNil: 0 else: self.max_spherical_harmonics), "#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 =