Make shader version be top of the code 87/275087/2
authorseungho <sbsh.baek@samsung.com>
Mon, 16 May 2022 11:35:30 +0000 (20:35 +0900)
committerSeungho BAEK <sbsh.baek@samsung.com>
Mon, 16 May 2022 12:10:07 +0000 (12:10 +0000)
Change-Id: Iaa2ab8e68bd43ea8e439cbfbc1fd04f0a45349a5
Signed-off-by: seungho <sbsh.baek@samsung.com>
dali-scene-loader/internal/graphics/shaders/default-physically-based-shader.frag
dali-scene-loader/internal/graphics/shaders/default-physically-based-shader.vert

index 8f927f5..3c295e3 100644 (file)
@@ -1,3 +1,5 @@
+#version 300 es
+
 // Original Code
 // https://github.com/KhronosGroup/glTF-Sample-Viewer/blob/glTF-WebGL-PBR/shaders/pbr-frag.glsl
 // Commit dc84b5e374fb3d23153d2248a338ef88173f9eb6
 // Original Code
 // https://github.com/KhronosGroup/glTF-Sample-Viewer/blob/glTF-WebGL-PBR/shaders/pbr-frag.glsl
 // Commit dc84b5e374fb3d23153d2248a338ef88173f9eb6
@@ -15,8 +17,6 @@
 // [4] \"An Inexpensive BRDF Model for Physically based Rendering\" by Christophe Schlick
 //     https://www.cs.virginia.edu/~jdl/bib/appearance/analytic%20models/schlick94b.pdf
 
 // [4] \"An Inexpensive BRDF Model for Physically based Rendering\" by Christophe Schlick
 //     https://www.cs.virginia.edu/~jdl/bib/appearance/analytic%20models/schlick94b.pdf
 
-#version 300 es
-
 #ifdef HIGHP
 precision highp float;
 #else
 #ifdef HIGHP
 precision highp float;
 #else
index a4451e5..f4778cb 100644 (file)
@@ -1,9 +1,9 @@
+#version 300 es
+
 // Original Code
 // https://github.com/KhronosGroup/glTF-Sample-Viewer/blob/glTF-WebGL-PBR/shaders/pbr-vert.glsl
 // Commit dc84b5e374fb3d23153d2248a338ef88173f9eb6
 
 // Original Code
 // https://github.com/KhronosGroup/glTF-Sample-Viewer/blob/glTF-WebGL-PBR/shaders/pbr-vert.glsl
 // Commit dc84b5e374fb3d23153d2248a338ef88173f9eb6
 
-#version 300 es
-
 #ifdef HIGHP
   precision highp float;
 #else
 #ifdef HIGHP
   precision highp float;
 #else