Make shader version be top of the code
[platform/core/uifw/dali-toolkit.git] / dali-scene-loader / internal / graphics / shaders / default-physically-based-shader.frag
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
@@ -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
 
-#version 300 es
-
 #ifdef HIGHP
 precision highp float;
 #else