diff --git a/kraken_standard_assets_ios/Resources-Info.plist b/kraken_standard_assets_ios/Resources-Info.plist
deleted file mode 100755
index c71a54e..0000000
--- a/kraken_standard_assets_ios/Resources-Info.plist
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- English
- CFBundleExecutable
- ${EXECUTABLE_NAME}
- CFBundleIconFile
-
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- ${PRODUCT_NAME}
- CFBundlePackageType
- BNDL
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1
- CFPlugInDynamicRegisterFunction
-
- CFPlugInDynamicRegistration
- NO
- CFPlugInFactories
-
- 00000000-0000-0000-0000-000000000000
- MyFactoryFunction
-
- CFPlugInTypes
-
- 00000000-0000-0000-0000-000000000000
-
- 00000000-0000-0000-0000-000000000000
-
-
- CFPlugInUnloadFunction
-
- NSHumanReadableCopyright
- Copyright © 2013 Kearwood Software. All rights reserved.
-
-
diff --git a/kraken_standard_assets_ios/Shaders/ObjectShader.fsh b/kraken_standard_assets_ios/Shaders/ObjectShader.fsh
deleted file mode 100755
index 47ef5e7..0000000
--- a/kraken_standard_assets_ios/Shaders/ObjectShader.fsh
+++ /dev/null
@@ -1,423 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-#extension GL_EXT_shadow_samplers : require
-
-#if ENABLE_RIM_COLOR == 1
- uniform lowp vec3 rim_color;
- uniform mediump float rim_power;
-#endif
-
-#if FOG_TYPE > 0
- // FOG_TYPE 1 - Linear
- // FOG_TYPE 2 - Exponential
- // FOG_TYPE 3 - Exponential squared
- uniform lowp vec3 fog_color;
- uniform mediump float fog_near;
- #if FOG_TYPE == 1
- uniform mediump float fog_far;
- uniform mediump float fog_scale;
- #endif
-
- #if FOG_TYPE > 1
- uniform mediump float fog_density;
- #endif
-
- #if FOG_TYPE == 2
- uniform mediump float fog_density_premultiplied_exponential;
- #endif
- #if FOG_TYPE == 3
- uniform mediump float fog_density_premultiplied_squared;
- #endif
-#endif
-
-
-#if ENABLE_PER_PIXEL == 1 || GBUFFER_PASS == 1
- uniform mediump float material_shininess;
- #if HAS_NORMAL_MAP == 1
- uniform sampler2D normalTexture;
- #else
- varying mediump vec3 normal;
- #endif
-
- #if HAS_DIFFUSE_MAP == 1 || HAS_NORMAL_MAP == 1 || HAS_SPEC_MAP == 1 || HAS_REFLECTION_MAP == 1
- varying highp vec2 texCoord;
- #endif
- #if HAS_NORMAL_MAP_OFFSET == 1 || HAS_NORMAL_MAP_SCALE == 1
- varying highp vec2 normal_uv;
- #else
- #define normal_uv texCoord
- #endif
-#else
- #if HAS_DIFFUSE_MAP == 1
- varying highp vec2 texCoord;
- #endif
-#endif
-
-
-#if GBUFFER_PASS == 3
- uniform sampler2D gbuffer_frame;
- uniform sampler2D gbuffer_depth;
-#endif
-
-#if GBUFFER_PASS == 1
- #if HAS_NORMAL_MAP == 1
- varying highp mat3 tangent_to_view_matrix;
- #else
- uniform highp mat4 model_view_inverse_transpose_matrix;
- #endif
-
- #if HAS_DIFFUSE_MAP == 1 && ALPHA_TEST == 1
- uniform sampler2D diffuseTexture;
- #if HAS_DIFFUSE_MAP_OFFSET == 1 || HAS_DIFFUSE_MAP_SCALE == 1
- varying highp vec2 diffuse_uv;
- #else
- #define diffuse_uv texCoord
- #endif
- #endif
-#else
- uniform lowp vec3 material_ambient, material_diffuse, material_specular;
- uniform lowp float material_alpha;
-
-
- #if HAS_DIFFUSE_MAP == 1
- uniform sampler2D diffuseTexture;
- #endif
-
- #if HAS_SPEC_MAP == 1
- uniform sampler2D specularTexture;
- #endif
-
- #if HAS_REFLECTION_MAP == 1
- uniform sampler2D reflectionTexture;
- #endif
-
- #if ENABLE_RIM_COLOR == 1
- #define NEED_EYEVEC
- #endif
-
- #if HAS_REFLECTION_CUBE_MAP == 1
- uniform lowp vec3 material_reflection;
- uniform samplerCube reflectionCubeTexture;
- #if HAS_NORMAL_MAP == 1
- varying highp mat3 tangent_to_world_matrix;
- #define NEED_EYEVEC
-
- uniform highp mat4 model_matrix;
- #else
- varying mediump vec3 reflectionVec;
- #endif
- #endif
-
- #ifdef NEED_EYEVEC
- varying mediump vec3 eyeVec;
- #endif
-
-
- #if SHADOW_QUALITY >= 1
- #ifdef GL_EXT_shadow_samplers
- uniform sampler2DShadow shadowTexture1;
- #else
- uniform sampler2D shadowTexture1;
- #endif
- varying highp vec4 shadowMapCoord1;
- #endif
-
- #if HAS_LIGHT_MAP == 1
- uniform sampler2D lightmapTexture;
- varying mediump vec2 lightmap_uv;
- #endif
-
- #if SHADOW_QUALITY >= 2
- uniform sampler2D shadowTexture2;
- varying highp vec4 shadowMapCoord2;
- #endif
-
- #if SHADOW_QUALITY >= 3
- uniform sampler2D shadowTexture3;
- varying highp vec4 shadowMapCoord3;
- #endif
-
- #if ENABLE_PER_PIXEL == 1
- varying mediump vec3 lightVec;
- varying mediump vec3 halfVec;
- #else
- varying mediump float lamberFactor;
- varying mediump float specularFactor;
- #endif
-
- #if (HAS_SPEC_MAP_OFFSET == 1|| HAS_SPEC_MAP_SCALE == 1) && ENABLE_PER_PIXEL == 1
- varying mediump vec2 spec_uv;
- #else
- #define spec_uv texCoord
- #endif
-
- #if (HAS_REFLECTION_MAP_OFFSET == 1|| HAS_REFLECTION_MAP_SCALE == 1) && ENABLE_PER_PIXEL == 1
- varying mediump vec2 reflection_uv;
- #else
- #define reflection_uv texCoord
- #endif
-
- #if HAS_DIFFUSE_MAP_OFFSET == 1 || HAS_DIFFUSE_MAP_SCALE == 1
- varying highp vec2 diffuse_uv;
- #else
- #define diffuse_uv texCoord
- #endif
-
-#endif
-
-#if GBUFFER_PASS == 1 || GBUFFER_PASS == 3
- uniform mediump vec4 viewport;
-#endif
-
-void main()
-{
- #if ALPHA_TEST == 1 && HAS_DIFFUSE_MAP == 1
- mediump vec4 diffuseMaterial = texture2D(diffuseTexture, diffuse_uv);
- if(diffuseMaterial.a < 0.5) discard;
- #endif
-
- #if GBUFFER_PASS == 1 && ALPHA_TEST == 1
- if(texture2D(diffuseTexture, diffuse_uv).a < 0.5) discard;
- #endif
-
- #if GBUFFER_PASS == 2 || GBUFFER_PASS == 3
- mediump vec2 gbuffer_uv = vec2(gl_FragCoord.xy / viewport.zw); // FINDME, TODO - Dependent Texture Read adding latency, due to calculation of texture UV within fragment -- move to vertex shader?
- #endif
-
- #if GBUFFER_PASS == 3
- lowp vec4 gbuffer_sample = texture2D(gbuffer_frame, gbuffer_uv);
- mediump vec3 gbuffer_lamber_factor = gbuffer_sample.rgb * 5.0;
- lowp float gbuffer_specular_factor = gbuffer_sample.a;
- #endif
-
- #if GBUFFER_PASS == 1
- #if HAS_NORMAL_MAP == 1
- // lookup normal from normal map, move from [0,1] to [-1, 1] range, normalize
- mediump vec3 normal = normalize(2.0 * texture2D(normalTexture,normal_uv).rgb - 1.0);
- mediump vec3 view_space_normal = tangent_to_view_matrix * normal;
- #else
- mediump vec3 view_space_normal = vec3(model_view_inverse_transpose_matrix * vec4(normal, 1.0));
- #endif
- gl_FragColor = vec4(view_space_normal * 0.5 + 0.5, material_shininess / 100.0);
- #else
- #if HAS_DIFFUSE_MAP == 1
- #if ALPHA_TEST == 1
- diffuseMaterial.a = 1.0;
- #else
- mediump vec4 diffuseMaterial = texture2D(diffuseTexture, diffuse_uv);
- #endif
-
- #else
- mediump vec4 diffuseMaterial = vec4(1.0);
- #endif
-
- #if ENABLE_PER_PIXEL == 1
- #if HAS_NORMAL_MAP == 1
- // lookup normal from normal map, move from [0,1] to [-1, 1] range, normalize
- mediump vec3 normal = normalize(2.0 * texture2D(normalTexture,normal_uv).rgb - 1.0);
- #endif
-
- #if GBUFFER_PASS == 3
- mediump vec3 lamberFactor = gbuffer_lamber_factor;
- #else
- mediump float lamberFactor = max(0.0,dot(lightVec, normal));
- #endif
- mediump float specularFactor = 0.0;
- if(material_shininess > 0.0) {
- #if GBUFFER_PASS == 3
- specularFactor = gbuffer_specular_factor;
- #else
- mediump float halfVecDot = dot(halfVec,normal);
- if(halfVecDot > 0.0) {
- specularFactor = max(0.0,pow(halfVecDot, material_shininess));
- }
- #endif
- }
-
- #ifdef GL_EXT_shadow_samplers
- #if SHADOW_QUALITY == 1
- lowp float shadow = shadow2DProjEXT(shadowTexture1, shadowMapCoord1);
- lamberFactor *= shadow;
- specularFactor *= shadow;
- #endif
- #else
-
- #if SHADOW_QUALITY == 1
-
- highp float shadowMapDepth = 1.0;
- highp float vertexShadowDepth = 1.0;
- highp vec2 shadowMapPos = (shadowMapCoord1 / shadowMapCoord1.w).st;
-
- if(shadowMapCoord1.x >= -1.0 && shadowMapCoord1.x <= 1.0 && shadowMapCoord1.y >= -1.0 && shadowMapCoord1.y <= 1.0 && shadowMapCoord1.z >= 0.0 && shadowMapCoord1.z <= 1.0) {
- #if DEBUG_PSSM == 1
- diffuseMaterial = diffuseMaterial * vec4(0.75, 0.75, 0.5, 1.0) + vec4(0.0, 0.0, 0.5, 0.0);
- #endif
- shadowMapDepth = texture2D(shadowTexture1, shadowMapPos).z;
- vertexShadowDepth = (shadowMapCoord1 / shadowMapCoord1.w).z;
- }
- #endif
-
- #if SHADOW_QUALITY >= 2
-
- highp float shadowMapDepth = 1.0;
- highp float vertexShadowDepth = 1.0;
-
- if(shadowMapCoord1.x >= -1.0 && shadowMapCoord1.x <= 1.0 && shadowMapCoord1.y >= -1.0 && shadowMapCoord1.y <= 1.0 && shadowMapCoord1.z >= 0.0 && shadowMapCoord1.z <= 1.0) {
- #if DEBUG_PSSM == 1
- diffuseMaterial = diffuseMaterial * vec4(0.75, 0.75, 0.5, 1.0) + vec4(0.0, 0.0, 0.5 * diffuseMaterial.a, 0.0);
- #endif
- highp vec2 shadowMapPos = (shadowMapCoord1 / shadowMapCoord1.w).st;
- shadowMapDepth = texture2D(shadowTexture1, shadowMapPos).z;
- vertexShadowDepth = (shadowMapCoord1 / shadowMapCoord1.w).z;
- } else if(shadowMapCoord2.s >= -1.0 && shadowMapCoord2.s <= 1.0 && shadowMapCoord2.t >= -1.0 && shadowMapCoord2.t <= 1.0 && shadowMapCoord2.z >= 0.0 && shadowMapCoord2.z <= 1.0) {
- #if DEBUG_PSSM == 1
- diffuseMaterial = diffuseMaterial * vec4(0.75, 0.50, 0.75, 1.0) + vec4(0.0, 0.5 * diffuseMaterial.a, 0.0, 0.0);
- #endif
- highp vec2 shadowMapPos = (shadowMapCoord2 / shadowMapCoord2.w).st;
- shadowMapDepth = texture2D(shadowTexture2, shadowMapPos).z;
- vertexShadowDepth = (shadowMapCoord2 / shadowMapCoord2.w).z;
- }
- #if SHADOW_QUALITY >= 3
- else if(shadowMapCoord3.s >= -1.0 && shadowMapCoord3.s <= 1.0 && shadowMapCoord3.t >= -1.0 && shadowMapCoord3.t <= 1.0 && shadowMapCoord3.z >= 0.0 && shadowMapCoord3.z <= 1.0) {
- #if DEBUG_PSSM == 1
- diffuseMaterial = diffuseMaterial * vec4(0.50, 0.75, 0.75, 1.0) + vec4(0.5 * diffuseMaterial.a, 0.0, 0.0, 0.0);
- #endif
- highp vec2 shadowMapPos = (shadowMapCoord3 / shadowMapCoord3.w).st;
- shadowMapDepth = texture2D(shadowTexture3, shadowMapPos).z;
- vertexShadowDepth = (shadowMapCoord3 / shadowMapCoord3.w).z;
- }
-
- #endif
- #endif
-
- #if SHADOW_QUALITY >= 1
- if(vertexShadowDepth >= shadowMapDepth && shadowMapDepth < 1.0) {
- #if GBUFFER_PASS == 3
- lamberFactor = vec3(0.0);
- #else
- lamberFactor = 0.0;
- #endif
- specularFactor = 0.0;
- }
- #endif
- #endif
- #endif
-
- #if ENABLE_AMBIENT == 1
- // -------------------- Add ambient light and alpha component --------------------
- gl_FragColor = vec4(vec3(diffuseMaterial) * material_ambient, 0.0);
- #else
- gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
- #endif
-
- #if ENABLE_DIFFUSE == 1
- // -------------------- Add diffuse light --------------------
- gl_FragColor += diffuseMaterial * vec4(material_diffuse * lamberFactor, 1.0);
- #endif
-
- // -------------------- Apply material_alpha --------------------
-
- #if ALPHA_BLEND == 1
- gl_FragColor.a = diffuseMaterial.a;
- gl_FragColor *= material_alpha;
- #endif
-
- // -------------------- Add specular light --------------------
- // Additive, not masked against diffuse alpha
- #if ENABLE_SPECULAR == 1
- #if HAS_SPEC_MAP == 1 && ENABLE_PER_PIXEL == 1
- gl_FragColor.rgb += material_specular * vec3(texture2D(specularTexture, spec_uv)) * specularFactor;
- #else
- gl_FragColor.rgb += material_specular * specularFactor;
- #endif
- #endif
-
- // -------------------- Multiply light map --------------------
- #if HAS_LIGHT_MAP == 1
- mediump vec3 lightMapColor = vec3(texture2D(lightmapTexture, lightmap_uv));
- //gl_FragColor = vec4(gl_FragColor.r * lightMapColor.r, gl_FragColor.g * lightMapColor.g, gl_FragColor.b * lightMapColor.b, gl_FragColor.a);
- gl_FragColor.rgb *= lightMapColor;
- #endif
-
-
- // -------------------- Add reflected light --------------------
- #if HAS_REFLECTION_CUBE_MAP == 1
- // Reflected light is additive and not modulated by the light map
- #if HAS_NORMAL_MAP == 1
- // Calculate reflection vector as I - 2.0 * dot(N, I) * N
- mediump vec3 incidenceVec = -normalize(eyeVec);
- highp vec3 world_space_normal = tangent_to_world_matrix * normal;
- mediump vec3 reflectionVec = mat3(model_matrix) * (incidenceVec - 2.0 * dot(world_space_normal, incidenceVec) * world_space_normal);
- #endif
- #if HAS_REFLECTION_MAP == 1
- gl_FragColor += vec4(material_reflection, 0.0) * texture2D(reflectionTexture, reflection_uv) * vec4(textureCube(reflectionCubeTexture, reflectionVec).rgb, 1.0);
- #else
- gl_FragColor += vec4(material_reflection, 0.0) * vec4(textureCube(reflectionCubeTexture, reflectionVec).rgb, 1.0);
- #endif
- #endif
-
- // -------------------- Apply Fog --------------------
- #if FOG_TYPE == 1 || FOG_TYPE == 2 || FOG_TYPE == 3
-
- #if FOG_TYPE == 1
- // Linear fog
- lowp float fog_alpha = clamp((fog_far - gl_FragCoord.z / gl_FragCoord.w) * fog_scale, 0.0, 1.0);
- #endif
-
- #if FOG_TYPE == 2
- // Exponential fog
- mediump float fog_z = gl_FragCoord.z / gl_FragCoord.w - fog_near;
- lowp float fog_alpha = clamp(exp2(fog_density_premultiplied_exponential * fog_z), 0.0, 1.0);
- #endif
-
- #if FOG_TYPE == 3
- // Exponential squared fog
- mediump float fog_z = max(gl_FragCoord.z / gl_FragCoord.w - fog_near, 0.0);
- lowp float fog_alpha = clamp(exp2(fog_density_premultiplied_squared * fog_z * fog_z), 0.0, 1.0);
- #endif
-
- #if ALPHA_BLEND == 1
- gl_FragColor.rgb = mix(fog_color.rgb * gl_FragColor.a, gl_FragColor.rgb, fog_alpha);
- #else
- gl_FragColor.rgb = mix(fog_color.rgb, gl_FragColor.rgb, fog_alpha);
- #endif
- #endif
-
-
- #endif
-
- #if ENABLE_RIM_COLOR == 1
- lowp float rim = 1.0 - clamp(dot(normalize(eyeVec), normal), 0.0, 1.0);
-
- gl_FragColor += vec4(rim_color, 1.0) * pow(rim, rim_power);
- #endif
-
- #if BONE_COUNT > 0
- gl_FragColor.b = 1.0;
- #endif
-}
diff --git a/kraken_standard_assets_ios/Shaders/ObjectShader.vsh b/kraken_standard_assets_ios/Shaders/ObjectShader.vsh
deleted file mode 100755
index 904a3a4..0000000
--- a/kraken_standard_assets_ios/Shaders/ObjectShader.vsh
+++ /dev/null
@@ -1,344 +0,0 @@
-//
-// Shader.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-
-attribute highp vec3 vertex_position, vertex_normal;
-#if HAS_NORMAL_MAP == 1
- attribute highp vec3 vertex_tangent;
-#endif
-attribute mediump vec2 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-#if BONE_COUNT > 0
- attribute highp vec4 bone_weights;
- attribute highp vec4 bone_indexes;
- uniform highp mat4 bone_transforms[BONE_COUNT];
-#else
- #define vertex_position_skinned vertex_position
- #define vertex_normal_skinned vertex_normal
- #define vertex_tangent_skinned vertex_tangent
-#endif
-
-
-
-#if ENABLE_PER_PIXEL == 1 || GBUFFER_PASS == 1
- #if HAS_DIFFUSE_MAP == 1 || HAS_NORMAL_MAP == 1 || HAS_SPEC_MAP == 1 || HAS_REFLECTION_MAP == 1
- varying highp vec2 texCoord;
- #endif
- #if HAS_NORMAL_MAP == 1
- #if HAS_NORMAL_MAP_SCALE == 1
- uniform highp vec2 normalTexture_Scale;
- #endif
-
- #if HAS_NORMAL_MAP_OFFSET == 1
- uniform highp vec2 normalTexture_Offset;
- #endif
-
- #if HAS_NORMAL_MAP_OFFSET == 1 || HAS_NORMAL_MAP_SCALE == 1
- varying highp vec2 normal_uv;
- #endif
- #else
- varying mediump vec3 normal;
- #endif
-#else
- uniform mediump float material_shininess;
- #if HAS_DIFFUSE_MAP == 1
- varying highp vec2 texCoord;
- #endif
-#endif
-
-#if GBUFFER_PASS == 1
- #if HAS_NORMAL_MAP == 1
- uniform highp mat4 model_view_inverse_transpose_matrix;
- varying highp mat3 tangent_to_view_matrix;
- #endif
-#else
-
- uniform highp vec3 light_direction_model_space; // Must be normalized before entering shader
- uniform highp vec3 camera_position_model_space;
-
- #if HAS_LIGHT_MAP == 1
- attribute mediump vec2 vertex_lightmap_uv;
- varying mediump vec2 lightmap_uv;
- #endif
-
- #if ENABLE_PER_PIXEL == 1
- varying mediump vec3 lightVec;
- varying mediump vec3 halfVec;
-
- #if HAS_SPEC_MAP_OFFSET == 1 || HAS_SPEC_MAP_SCALE == 1
- varying highp vec2 spec_uv;
- #endif
-
- #if HAS_SPEC_MAP_SCALE == 1
- uniform highp vec2 specularTexture_Scale;
- #endif
-
- #if HAS_SPEC_MAP_OFFSET == 1
- uniform highp vec2 specularTexture_Offset;
- #endif
-
- #if HAS_REFLECTION_MAP_OFFSET == 1 || HAS_REFLECTION_MAP_SCALE == 1
- varying highp vec2 reflection_uv;
- #endif
-
- #if HAS_REFLECTION_MAP_SCALE == 1
- uniform highp vec2 reflectionTexture_Scale;
- #endif
-
- #if HAS_REFLECTION_MAP_OFFSET == 1
- uniform highp vec2 reflectionTexture_Offset;
- #endif
-
- #if SHADOW_QUALITY >= 1
- uniform highp mat4 shadow_mvp1;
- varying highp vec4 shadowMapCoord1;
- #endif
-
- #if SHADOW_QUALITY >= 2
- uniform highp mat4 shadow_mvp2;
- varying highp vec4 shadowMapCoord2;
- #endif
-
- #if SHADOW_QUALITY >= 3
- uniform highp mat4 shadow_mvp3;
- varying highp vec4 shadowMapCoord3;
- #endif
-
- #else
- varying mediump float lamberFactor;
- varying mediump float specularFactor;
- #endif
-
- #if ENABLE_RIM_COLOR == 1
- #define NEED_EYEVEC
- #endif
-
- #if HAS_REFLECTION_CUBE_MAP == 1
- #if HAS_NORMAL_MAP == 1
- #define NEED_EYEVEC
- uniform highp mat4 model_inverse_transpose_matrix;
- varying highp mat3 tangent_to_world_matrix;
- #else
- uniform highp mat4 model_matrix;
- varying mediump vec3 reflectionVec;
- #endif
- #endif
-
- #ifdef NEED_EYEVEC
- varying mediump vec3 eyeVec;
- #endif
-
- #if HAS_DIFFUSE_MAP_SCALE == 1
- uniform highp vec2 diffuseTexture_Scale;
- #endif
-
- #if HAS_DIFFUSE_MAP_OFFSET == 1
- uniform highp vec2 diffuseTexture_Offset;
- #endif
-
- #if HAS_DIFFUSE_MAP_OFFSET == 1 || HAS_DIFFUSE_MAP_SCALE == 1
- varying highp vec2 diffuse_uv;
- #endif
-
-#endif
-
-
-
-void main()
-{
-#if BONE_COUNT > 0
- mediump vec4 scaled_bone_indexes = bone_indexes;
- mediump vec4 scaled_bone_weights = bone_weights;
-
- //scaled_bone_indexes = vec4(0.0, 0.0, 0.0, 0.0);
- //scaled_bone_weights = vec4(1.0, 0.0, 0.0, 0.0);
-
- highp mat4 skin_matrix =
- bone_transforms[ int(scaled_bone_indexes.x) ] * scaled_bone_weights.x +
- bone_transforms[ int(scaled_bone_indexes.y) ] * scaled_bone_weights.y +
- bone_transforms[ int(scaled_bone_indexes.z) ] * scaled_bone_weights.z +
- bone_transforms[ int(scaled_bone_indexes.w) ] * scaled_bone_weights.w;
- //skin_matrix = bone_transforms[0];
- highp vec3 vertex_position_skinned = (skin_matrix * vec4(vertex_position, 1)).xyz;
-
- highp vec3 vertex_normal_skinned = normalize(mat3(skin_matrix) * vertex_normal);
- #if HAS_NORMAL_MAP == 1
- highp vec3 vertex_tangent_skinned = normalize(mat3(skin_matrix) * vertex_tangent);
- #endif
-
-#endif
-
- // Transform position
- gl_Position = mvp_matrix * vec4(vertex_position_skinned,1.0);
-
-
-
- #if HAS_DIFFUSE_MAP == 1 || (HAS_NORMAL_MAP == 1 && ENABLE_PER_PIXEL == 1) || (HAS_SPEC_MAP == 1 && ENABLE_PER_PIXEL == 1) || (HAS_REFLECTION_MAP == 1 && ENABLE_PER_PIXEL == 1)
- // Pass UV co-ordinates
- texCoord = vertex_uv.st;
- #endif
-
-
-
-
- // Scaled and translated normal map UV's
- #if (HAS_NORMAL_MAP_OFFSET == 1 || HAS_NORMAL_MAP_SCALE == 1) && ENABLE_PER_PIXEL == 1
- normal_uv = texCoord;
-
- #if HAS_NORMAL_MAP_OFFSET == 1
- normal_uv += normalTexture_Offset;
- #endif
-
- #if HAS_NORMAL_MAP_SCALE == 1
- normal_uv *= normalTexture_Scale;
- #endif
-
- #endif
-
- #if GBUFFER_PASS != 1 || ALPHA_TEST == 1
- // Scaled and translated diffuse map UV's
- #if HAS_DIFFUSE_MAP_OFFSET == 1 || HAS_DIFFUSE_MAP_SCALE == 1
- diffuse_uv = texCoord;
-
- #if HAS_DIFFUSE_MAP_OFFSET == 1
- diffuse_uv += diffuseTexture_Offset;
- #endif
-
- #if HAS_DIFFUSE_MAP_SCALE == 1
- diffuse_uv *= diffuseTexture_Scale;
- #endif
- #endif
- #endif
-
-
- #if GBUFFER_PASS == 1
- #if HAS_NORMAL_MAP == 1
- mediump vec3 a_bitangent = cross(vertex_normal_skinned, vertex_tangent_skinned);
- tangent_to_view_matrix[0] = vec3(model_view_inverse_transpose_matrix * vec4(vertex_tangent_skinned, 1.0));
- tangent_to_view_matrix[1] = vec3(model_view_inverse_transpose_matrix * vec4(a_bitangent, 1.0));
- tangent_to_view_matrix[2] = vec3(model_view_inverse_transpose_matrix * vec4(vertex_normal_skinned, 1.0));
- #else
- normal = vertex_normal_skinned;
- #endif
- #else
-
- #if HAS_REFLECTION_CUBE_MAP == 1
- #if HAS_NORMAL_MAP == 1
-
- #else
- // Calculate reflection vector as I - 2.0 * dot(N, I) * N
- mediump vec3 eyeVec = normalize(camera_position_model_space - vertex_position_skinned);
- mediump vec3 incidenceVec = -eyeVec;
- reflectionVec = mat3(model_matrix) * (incidenceVec - 2.0 * dot(vertex_normal_skinned, incidenceVec) * vertex_normal_skinned);
- #endif
- #endif
-
- #ifdef NEED_EYEVEC
- eyeVec = normalize(camera_position_model_space - vertex_position_skinned);
- #endif
-
- #if HAS_LIGHT_MAP == 1
- // Pass shadow UV co-ordinates
- lightmap_uv = vertex_lightmap_uv.st;
- #endif
-
-
-
- #if ENABLE_PER_PIXEL == 1
- // Scaled and translated specular map UV's
- #if HAS_SPEC_MAP_OFFSET == 1 || HAS_SPEC_MAP_SCALE == 1
- spec_uv = texCoord;
- #if HAS_SPEC_MAP_OFFSET == 1
- spec_uv += specularTexture_Offset;
- #endif
-
- #if HAS_SPEC_MAP_SCALE == 1
- spec_uv *= specularTexture_Scale;
- #endif
- #endif
-
- // Scaled and translated reflection map UV's
- #if HAS_REFLECTION_MAP_OFFSET == 1 || HAS_REFLECTION_MAP_SCALE == 1
- reflection_uv = texCoord;
- #if HAS_REFLECTION_MAP_OFFSET == 1
- reflection_uv += reflectionTexture_Offset;
- #endif
-
- #if HAS_REFLECTION_MAP_SCALE == 1
- reflection_uv *= reflectionTexture_Scale;
- #endif
- #endif
-
-
- #if SHADOW_QUALITY >= 1
- shadowMapCoord1 = shadow_mvp1 * vec4(vertex_position_skinned,1.0);
- #endif
-
- #if SHADOW_QUALITY >= 2
- shadowMapCoord2 = shadow_mvp2 * vec4(vertex_position_skinned,1.0);
- #endif
-
- #if SHADOW_QUALITY >= 3
- shadowMapCoord3 = shadow_mvp3 * vec4(vertex_position_skinned,1.0);
- #endif
-
- // ----------- Directional Light (Sun) -----------
- #if HAS_NORMAL_MAP == 1
- // ----- Calculate per-pixel lighting in tangent space, for normal mapping ------
- mediump vec3 a_bitangent = cross(vertex_normal_skinned, vertex_tangent_skinned);
- #if HAS_REFLECTION_CUBE_MAP == 0
- // The cube map reflections also require an eyeVec as a varying attribute when normal mapping, so only re-calculate here when needed
- mediump vec3 eyeVec = normalize(camera_position_model_space - vertex_position_skinned);
- #else
- tangent_to_world_matrix[0] = vec3(model_inverse_transpose_matrix * vec4(vertex_tangent_skinned, 1.0));
- tangent_to_world_matrix[1] = vec3(model_inverse_transpose_matrix * vec4(a_bitangent, 1.0));
- tangent_to_world_matrix[2] = vec3(model_inverse_transpose_matrix * vec4(vertex_normal_skinned, 1.0));
- #endif
-
- lightVec = normalize(vec3(dot(light_direction_model_space, vertex_tangent_skinned), dot(light_direction_model_space, a_bitangent), dot(light_direction_model_space, vertex_normal_skinned)));
- halfVec = normalize(vec3(dot(eyeVec, vertex_tangent_skinned), dot(eyeVec, a_bitangent), dot(eyeVec, vertex_normal_skinned)));
- halfVec = normalize(halfVec + lightVec); // Normalizing anyways, no need to divide by 2
- #else
- // ------ Calculate per-pixel lighting without normal mapping ------
- normal = vertex_normal_skinned;
- lightVec = light_direction_model_space;
- halfVec = normalize((normalize(camera_position_model_space - vertex_position_skinned) + lightVec)); // Normalizing anyways, no need to divide by 2
- #endif
- #else
-
- // ------ Calculate per-vertex lighting ------
- mediump vec3 halfVec = normalize((normalize(camera_position_model_space - vertex_position_skinned) + light_direction_model_space)); // Normalizing anyways, no need to divide by 2
- lamberFactor = max(0.0,dot(light_direction_model_space, vertex_normal_skinned));
- specularFactor = max(0.0,pow(dot(halfVec,vertex_normal_skinned), material_shininess));
- #endif
- #endif
-}
diff --git a/kraken_standard_assets_ios/Shaders/PostShader.fsh b/kraken_standard_assets_ios/Shaders/PostShader.fsh
deleted file mode 100755
index b11df0c..0000000
--- a/kraken_standard_assets_ios/Shaders/PostShader.fsh
+++ /dev/null
@@ -1,195 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-#define ENABLE_VIDEO_BG 0
-#define PIXEL_SHIFT_1 0.001
-#define PIXEL_SHIFT_2 0.002
-#define PIXEL_SHIFT_3 0.003
-#define PIXEL_SHIFT_4 0.004
-
-varying mediump vec2 textureCoordinate;
-precision lowp float;
-
-#if ENABLE_VIDEO_BG == 1
-uniform lowp sampler2D videoFrame;
-#endif
-
-#if ENABLE_FADE_COLOR == 1
-uniform lowp vec4 fade_color;
-#endif
-
-uniform lowp sampler2D renderFrame;
-uniform lowp sampler2D depthFrame;
-
-#if VOLUMETRIC_ENVIRONMENT_DOWNSAMPLED == 1
-uniform lowp sampler2D volumetricEnvironmentFrame;
-#endif
-
-void main()
-{
-
- lowp vec4 renderColor = texture2D(renderFrame, textureCoordinate);
-#if DOF_QUALITY > 0 || ENABLE_FLASH == 1
- mediump float depth = texture2D(depthFrame, textureCoordinate).r;
-#endif
- mediump vec4 pixelColor = renderColor;
-
-
-#if DOF_QUALITY == 2
-
- // Render high quality circle of confusion
- // __XXX__
- // _XXXXX_
- // _XXXXX_
- // _XXXXX_
- // __XXX__
- mediump float cf1 = PIXEL_SHIFT_1;
- mediump float cf2 = PIXEL_SHIFT_2;
-
- mediump float bx1 = textureCoordinate.s + cf1;
- mediump float bx2 = textureCoordinate.s + cf2;
- mediump float bxm1 = textureCoordinate.s - cf1;
- mediump float bxm2 = textureCoordinate.s - cf2;
-
- mediump float by1 = textureCoordinate.t + cf1;
- mediump float by2 = textureCoordinate.t + cf2;
- mediump float bym1 = textureCoordinate.t - cf1;
- mediump float bym2 = textureCoordinate.t - cf2;
-
- pixelColor += texture2D(renderFrame, vec2(bx1, textureCoordinate.t));
- pixelColor += texture2D(renderFrame, vec2(bxm1, textureCoordinate.t));
- pixelColor += texture2D(renderFrame, vec2(bx2, textureCoordinate.t));
- pixelColor += texture2D(renderFrame, vec2(bxm2, textureCoordinate.t));
-
- pixelColor += texture2D(renderFrame, vec2(textureCoordinate.s, by1));
- pixelColor += texture2D(renderFrame, vec2(bx1, by1));
- pixelColor += texture2D(renderFrame, vec2(bxm1, by1));
- pixelColor += texture2D(renderFrame, vec2(bx2, by1));
- pixelColor += texture2D(renderFrame, vec2(bxm2, by1));
-
- pixelColor += texture2D(renderFrame, vec2(textureCoordinate.s, by2));
- pixelColor += texture2D(renderFrame, vec2(bx1, by2));
- pixelColor += texture2D(renderFrame, vec2(bxm1, by2));
-
- pixelColor += texture2D(renderFrame, vec2(textureCoordinate.s,bym1));
- pixelColor += texture2D(renderFrame, vec2(bx1,bym1));
- pixelColor += texture2D(renderFrame, vec2(bxm1,bym1));
- pixelColor += texture2D(renderFrame, vec2(bx2,bym1));
- pixelColor += texture2D(renderFrame, vec2(bxm2,bym1));
-
- pixelColor += texture2D(renderFrame, vec2(bx1, bym2));
- pixelColor += texture2D(renderFrame, vec2(bx1, bym2));
- pixelColor += texture2D(renderFrame, vec2(bxm1, bym2));
- pixelColor /= 21.0;
-
-#endif
-// DOF_QUALITY == 2
-
-#if DOF_QUALITY == 1
-
- // Render low quality circle of confusion
- // ___X___
- // __XXX__
- // _XXXXX_
- // __XXX__
- // ___X___
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(0, -PIXEL_SHIFT_2));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(-PIXEL_SHIFT_1, -PIXEL_SHIFT_1));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(0, -PIXEL_SHIFT_1));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(+PIXEL_SHIFT_1, -PIXEL_SHIFT_1));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(-PIXEL_SHIFT_2, 0));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(-PIXEL_SHIFT_1, 0));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(+PIXEL_SHIFT_1, 0));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(+PIXEL_SHIFT_2, 0));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(-PIXEL_SHIFT_1, -PIXEL_SHIFT_1));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(0, -PIXEL_SHIFT_1));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(+PIXEL_SHIFT_1, -PIXEL_SHIFT_1));
- pixelColor += texture2D(renderFrame, textureCoordinate + vec2(0, -PIXEL_SHIFT_2));
- pixelColor /= 13.0;
-
-#endif
-// DOF_QUALITY == 1
-
-#if DOF_QUALITY > 0
- mediump float focusDepth = texture2D(depthFrame, vec2(0.5, 0.5)).r;
- mediump float blurAmount = clamp((depth - DOF_DEPTH - focusDepth) / DOF_FALLOFF, 0.0, 1.0);
- pixelColor = pixelColor * blurAmount + renderColor * (1.0 - blurAmount);
-#endif
-
- // ---- DEPTH_OF_FIELD END ----
-
-
-
-
- // ---- NIGHT_TIME START ----
-#if ENABLE_FLASH == 1
- // Un-comment to enable night time / flash effect
- pixelColor *= vec4(vec3(1.0 - clamp((depth - FLASH_DEPTH) / FLASH_FALLOFF, 0.0, 1.0)) * FLASH_INTENSITY, 1.0);
- //pixelColor *= vec4(vec3(clamp(1.0 / (depth - FLASH_DEPTH) * FLASH_FALLOFF, 0.0, 1.0) * FLASH_INTENSITY), 1.0);
-
-#endif
- // ---- NIGHT_TIME END ----
-
- // ---- VIDEO_BG START ----
-
- /*
- // Overlay video background
- if(depth == 1.0) {
- //FILTER COLOR BY CALCULATING PER PIXEL DOT PRODUCT
- pixelColor = vec4(dot(vec3(texture2D(videoFrame, textureCoordinate)), vec3(.222, .707, .071)));
- }
- */
-
- // ---- VIDEO_BG END ----
-
-#if VOLUMETRIC_ENVIRONMENT_DOWNSAMPLED == 1
- pixelColor += texture2D(volumetricEnvironmentFrame, textureCoordinate);
-#endif
-
-
- // ---- VIGNETTE START ----
-
- // Render vignette effect
-
-#if ENABLE_VIGNETTE == 1
- pixelColor *= vec4(vec3(clamp(1.0 - (distance(textureCoordinate, vec2(0.5, 0.5)) - VIGNETTE_RADIUS) / VIGNETTE_FALLOFF, 0.0, 1.0)), 1.0);
-#endif
- // ---- VIGNETTE END ----
-
-#if ENABLE_FADE_COLOR == 1
- pixelColor.rgb = mix(pixelColor.rgb, fade_color.rgb, fade_color.a);
-#endif
-
- gl_FragColor = pixelColor;
-
-
- //PASSTHROUGH STATEMENT
- // gl_FragColor = texture2D(depthFrame, textureCoordinate);
-
- //gl_FragColor = vec4(vec3(blurAmount), 1.0);
-
-}
diff --git a/kraken_standard_assets_ios/Shaders/PostShader.vsh b/kraken_standard_assets_ios/Shaders/PostShader.vsh
deleted file mode 100755
index c147629..0000000
--- a/kraken_standard_assets_ios/Shaders/PostShader.vsh
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-uniform mediump vec2 viewport_downsample;
-attribute vec4 vertex_position;
-attribute lowp vec4 vertex_uv;
-
-varying mediump vec2 textureCoordinate;
-
-void main()
-{
- gl_Position = vertex_position;
- textureCoordinate = vertex_uv.xy * viewport_downsample.xy;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/ShadowShader.fsh b/kraken_standard_assets_ios/Shaders/ShadowShader.fsh
deleted file mode 100755
index 81802b9..0000000
--- a/kraken_standard_assets_ios/Shaders/ShadowShader.fsh
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-//varying mediump vec2 texCoord;
-
-void main()
-{
- gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
-}
diff --git a/kraken_standard_assets_ios/Shaders/ShadowShader.vsh b/kraken_standard_assets_ios/Shaders/ShadowShader.vsh
deleted file mode 100755
index b8241a0..0000000
--- a/kraken_standard_assets_ios/Shaders/ShadowShader.vsh
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-#define SHADOW_BIAS 0.01
-
-
-attribute highp vec4 vertex_position;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- // Transform position
- /*
- position = shadow_mvp1 * vec4(vertex_position,1.0);
- */
- gl_Position = mvp_matrix * vertex_position;
- gl_Position.z += SHADOW_BIAS;
- /*
- // Pass UV co-ordinates
- texCoord = vertex_uv.st;
- */
-
-}
diff --git a/kraken_standard_assets_ios/Shaders/debug_font.fsh b/kraken_standard_assets_ios/Shaders/debug_font.fsh
deleted file mode 100755
index 94649da..0000000
--- a/kraken_standard_assets_ios/Shaders/debug_font.fsh
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-varying mediump vec2 textureCoordinate;
-
-uniform sampler2D diffuseTexture;
-
-void main()
-{
- lowp vec4 font_color = texture2D(diffuseTexture, textureCoordinate);
- gl_FragColor = vec4(font_color.r, font_color.g, font_color.b, font_color.r + 0.50);
-// gl_FragColor = vec4(textureCoordinate.s, textureCoordinate.t, 0.0, 1.0);
-}
diff --git a/kraken_standard_assets_ios/Shaders/debug_font.vsh b/kraken_standard_assets_ios/Shaders/debug_font.vsh
deleted file mode 100755
index 5d7bdea..0000000
--- a/kraken_standard_assets_ios/Shaders/debug_font.vsh
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-varying mediump vec2 textureCoordinate;
-
-attribute vec4 vertex_position;
-attribute lowp vec2 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = /*mvp_matrix * */vertex_position;
- textureCoordinate = vertex_uv;
-}
diff --git a/kraken_standard_assets_ios/Shaders/dust_particle.fsh b/kraken_standard_assets_ios/Shaders/dust_particle.fsh
deleted file mode 100755
index 468a31e..0000000
--- a/kraken_standard_assets_ios/Shaders/dust_particle.fsh
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// dust_particle.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-#extension GL_EXT_shadow_samplers : require
-
-varying mediump vec2 texCoord;
-
-varying mediump vec4 shadowMapCoord1;
-uniform sampler2DShadow shadowTexture1;
-uniform mediump vec3 light_color;
-varying lowp float intensity_modulate;
-
-void main() {
- gl_FragColor = vec4(light_color, 1.0) * shadow2DProjEXT(shadowTexture1, shadowMapCoord1) * max(1.0 - texCoord.x*texCoord.x-texCoord.y*texCoord.y, 0.0) * intensity_modulate;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/dust_particle.vsh b/kraken_standard_assets_ios/Shaders/dust_particle.vsh
deleted file mode 100755
index c49fb87..0000000
--- a/kraken_standard_assets_ios/Shaders/dust_particle.vsh
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// dust_particle.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute mediump vec2 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-uniform mediump vec4 viewport;
-uniform mediump float flare_size;
-attribute vec4 vertex_position;
-uniform highp vec3 particle_origin;
-
-uniform highp mat4 shadow_mvp1;
-varying mediump vec4 shadowMapCoord1;
-
-varying mediump vec2 texCoord;
-uniform highp float time_absolute;
-varying lowp float intensity_modulate;
-
-void main() {
- highp vec4 offset_center = vertex_position + vec4(particle_origin, 0.0);
- offset_center.xyz += vec3(sin((time_absolute + vertex_position.x * 100.0) * 0.05), sin((time_absolute + vertex_position.y * 100.0) * 0.07), sin((time_absolute + vertex_position.z * 100.0) * 0.03)) * 0.05;
- offset_center = vec4(mod(offset_center.x + 1.0, 2.0) - 1.0, mod(offset_center.y + 1.0, 2.0) - 1.0, mod(offset_center.z + 1.0, 2.0) - 1.0, 1.0);
- highp vec4 particle_center = mvp_matrix * offset_center;
- texCoord = vertex_uv * 3.46410161513775; // 3.46410161513775 = 2 * sqrt(3); 1 / (2 * sqrt(3)) is the radius of a circle encompased by a equilateral triangle with a side length of 1.
- gl_Position = particle_center + vec4(vertex_uv.x * viewport.w / viewport.z * 2.0 - 1.0, vertex_uv.y * 2.0 - 1.0, 0.0, 0.0) * flare_size;
-
- shadowMapCoord1 = shadow_mvp1 * offset_center;
-
- intensity_modulate = sin(time_absolute + mod(vertex_position.x * 100.0, 6.28318530717959)) * 0.5 + 0.5;
-}
diff --git a/kraken_standard_assets_ios/Shaders/flare.fsh b/kraken_standard_assets_ios/Shaders/flare.fsh
deleted file mode 100755
index 7fce713..0000000
--- a/kraken_standard_assets_ios/Shaders/flare.fsh
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// flare.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-varying mediump vec2 texCoord;
-uniform sampler2D diffuseTexture;
-uniform lowp float material_alpha;
-
-void main() {
- gl_FragColor = vec4(vec3(texture2D(diffuseTexture, texCoord)), 1.0) * material_alpha;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/flare.vsh b/kraken_standard_assets_ios/Shaders/flare.vsh
deleted file mode 100755
index b52bc75..0000000
--- a/kraken_standard_assets_ios/Shaders/flare.vsh
+++ /dev/null
@@ -1,42 +0,0 @@
-//
-// flare.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute mediump vec2 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-uniform mediump vec4 viewport;
-uniform mediump float flare_size;
-
-varying mediump vec2 texCoord;
-
-void main() {
- texCoord = vertex_uv;
- gl_Position = mvp_matrix * vec4(0.0, 0.0, 0.0, 1.0) + vec4(vertex_uv.x * viewport.w / viewport.z * 2.0 - 0.75, vertex_uv.y * 2.0 - 1.0, 0.0, 0.0) * flare_size;
-}
diff --git a/kraken_standard_assets_ios/Shaders/light_directional.fsh b/kraken_standard_assets_ios/Shaders/light_directional.fsh
deleted file mode 100755
index f92a412..0000000
--- a/kraken_standard_assets_ios/Shaders/light_directional.fsh
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-
-uniform sampler2D gbuffer_frame;
-uniform sampler2D gbuffer_depth;
-
-uniform mediump vec3 light_direction_view_space; // Must be normalized and converted to view space before entering shader
-uniform lowp vec3 light_color;
-uniform highp float light_intensity;
-uniform mediump vec4 viewport;
-
-void main()
-{
- lowp vec2 gbuffer_uv = vec2(gl_FragCoord.xy / viewport.zw); // FINDME, TODO - Dependent Texture Read adding latency, due to calculation of texture UV within fragment -- move to vertex shader?
- lowp vec4 gbuffer_sample = texture2D(gbuffer_frame, gbuffer_uv);
-
- mediump vec3 gbuffer_normal = normalize(2.0 * gbuffer_sample.rgb - 1.0);
- mediump float gbuffer_specular_exponent = gbuffer_sample.a * 100.0;
-
- mediump vec3 view_space_vertex_position = vec3(
- ((2.0 * gl_FragCoord.xy) - (2.0 * viewport.xy)) / (viewport.zw) - 1.0,
- (2.0 * -texture2D(gbuffer_depth, gbuffer_uv).r - gl_DepthRange.near - gl_DepthRange.far) / (gl_DepthRange.far - gl_DepthRange.near)
- );
-
- //mediump float lamberFactor = max(0.0,dot(light_direction_view_space, gbuffer_normal)) * 0.2;
- mediump float lamberFactor = dot(light_direction_view_space, gbuffer_normal) * 0.2;
-
- mediump float specularFactor = 0.0;
-
- mediump vec3 halfVec = normalize((normalize(- view_space_vertex_position) + light_direction_view_space)); // Normalizing anyways, no need to divide by 2
- specularFactor = pow(dot(halfVec,gbuffer_normal), gbuffer_specular_exponent);
-
-
- gl_FragColor = vec4(light_color * lamberFactor, specularFactor) * light_intensity;
-}
diff --git a/kraken_standard_assets_ios/Shaders/light_directional.vsh b/kraken_standard_assets_ios/Shaders/light_directional.vsh
deleted file mode 100755
index 62c7fd9..0000000
--- a/kraken_standard_assets_ios/Shaders/light_directional.vsh
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute vec4 vertex_position;
-
-void main()
-{
- gl_Position = vertex_position;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/light_point.fsh b/kraken_standard_assets_ios/Shaders/light_point.fsh
deleted file mode 100755
index 5c9b4bb..0000000
--- a/kraken_standard_assets_ios/Shaders/light_point.fsh
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-
-uniform sampler2D gbuffer_frame;
-uniform sampler2D gbuffer_depth;
-
-uniform lowp vec3 light_color;
-uniform highp float light_intensity;
-uniform highp float light_decay_start;
-uniform highp float light_cutoff;
-uniform mediump vec4 viewport;
-
-uniform highp mat4 inv_projection_matrix;
-
-uniform highp vec3 view_space_model_origin; // For point lights, this is the position of the light
-
-void main()
-{
-
- lowp vec2 gbuffer_uv = vec2(gl_FragCoord.xy / viewport.zw); // FINDME, TODO - Dependent Texture Read adding latency, due to calculation of texture UV within fragment -- move to vertex shader?
- lowp vec4 gbuffer_sample = texture2D(gbuffer_frame, gbuffer_uv);
-
- mediump vec3 gbuffer_normal = normalize(2.0 * gbuffer_sample.rgb - 1.0);
- mediump float gbuffer_specular_exponent = gbuffer_sample.a * 100.0;
-
- mediump vec4 clip_space_vertex_position = vec4(
- gl_FragCoord.xy / viewport.zw * 2.0 - 1.0,
- texture2D(gbuffer_depth, gbuffer_uv).r * 2.0 - 1.0,
- 1.0
- );
-
-
- mediump vec4 view_space_vertex_position = inv_projection_matrix * clip_space_vertex_position;
- view_space_vertex_position.xyz /= view_space_vertex_position.w;
-
- mediump float light_distance = max(0.0, distance(view_space_model_origin.xyz, view_space_vertex_position.xyz) - light_decay_start);
- mediump float light_attenuation = (light_intensity / ((light_distance + 1.0) * (light_distance + 1.0)) - light_cutoff) / (1.0 - light_cutoff);
- mediump vec3 light_vec = normalize(view_space_model_origin.xyz - view_space_vertex_position.xyz);
- mediump float lamberFactor = dot(light_vec, gbuffer_normal) * 0.2;
-
- mediump float specularFactor = 0.0;
- //if(gbuffer_specular_exponent > 0.0) {
- mediump vec3 halfVec = normalize((normalize(- view_space_vertex_position.xyz) + light_vec));
- specularFactor = pow(dot(halfVec,gbuffer_normal), gbuffer_specular_exponent);
- //}
-
- gl_FragColor = vec4(light_color * lamberFactor, specularFactor) * light_attenuation;
-}
diff --git a/kraken_standard_assets_ios/Shaders/light_point.vsh b/kraken_standard_assets_ios/Shaders/light_point.vsh
deleted file mode 100755
index 14bf865..0000000
--- a/kraken_standard_assets_ios/Shaders/light_point.vsh
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute vec4 vertex_position;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = mvp_matrix * vertex_position;
- gl_Position.z = max(gl_Position.z / gl_Position.w, 0.00) * gl_Position.w;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/light_point_inside.fsh b/kraken_standard_assets_ios/Shaders/light_point_inside.fsh
deleted file mode 100755
index f3e9aa1..0000000
--- a/kraken_standard_assets_ios/Shaders/light_point_inside.fsh
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-
-uniform sampler2D gbuffer_frame;
-uniform sampler2D gbuffer_depth;
-
-uniform lowp vec3 light_color;
-uniform highp float light_intensity;
-uniform highp float light_decay_start;
-uniform highp float light_cutoff;
-uniform mediump vec4 viewport;
-
-uniform highp mat4 inv_projection_matrix;
-
-uniform highp vec3 view_space_model_origin;
-
-void main()
-{
-
- lowp vec2 gbuffer_uv = vec2(gl_FragCoord.xy / viewport.zw); // FINDME, TODO - Dependent Texture Read adding latency, due to calculation of texture UV within fragment -- move to vertex shader?
- lowp vec4 gbuffer_sample = texture2D(gbuffer_frame, gbuffer_uv);
-
- mediump vec3 gbuffer_normal = normalize(2.0 * gbuffer_sample.rgb - 1.0);
- mediump float gbuffer_specular_exponent = gbuffer_sample.a * 100.0;
-
- mediump vec4 clip_space_vertex_position = vec4(
- gl_FragCoord.xy / viewport.zw * 2.0 - 1.0,
- texture2D(gbuffer_depth, gbuffer_uv).r * 2.0 - 1.0,
- 1.0
- );
-
-
- mediump vec4 view_space_vertex_position = inv_projection_matrix * clip_space_vertex_position;
- view_space_vertex_position.xyz /= view_space_vertex_position.w;
-
- mediump float light_distance = max(0.0, distance(view_space_model_origin.xyz, view_space_vertex_position.xyz) - light_decay_start);
- mediump float light_attenuation = (light_intensity / ((light_distance + 1.0) * (light_distance + 1.0)) - light_cutoff) / (1.0 - light_cutoff);
- mediump vec3 light_vec = normalize(view_space_model_origin.xyz - view_space_vertex_position.xyz);
- mediump float lamberFactor = dot(light_vec, gbuffer_normal) * 0.2;
-
- mediump float specularFactor = 0.0;
- //if(gbuffer_specular_exponent > 0.0) {
- mediump vec3 halfVec = normalize((normalize(- view_space_vertex_position.xyz) + light_vec));
- specularFactor = pow(dot(halfVec,gbuffer_normal), gbuffer_specular_exponent);
- //}
-
- gl_FragColor = vec4(light_color * lamberFactor, specularFactor) * light_attenuation;
-}
diff --git a/kraken_standard_assets_ios/Shaders/light_point_inside.vsh b/kraken_standard_assets_ios/Shaders/light_point_inside.vsh
deleted file mode 100755
index 62c7fd9..0000000
--- a/kraken_standard_assets_ios/Shaders/light_point_inside.vsh
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute vec4 vertex_position;
-
-void main()
-{
- gl_Position = vertex_position;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/occlusion_test.fsh b/kraken_standard_assets_ios/Shaders/occlusion_test.fsh
deleted file mode 100755
index 682a212..0000000
--- a/kraken_standard_assets_ios/Shaders/occlusion_test.fsh
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-// flare.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-void main() {
- gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
-}
diff --git a/kraken_standard_assets_ios/Shaders/occlusion_test.vsh b/kraken_standard_assets_ios/Shaders/occlusion_test.vsh
deleted file mode 100755
index f76551f..0000000
--- a/kraken_standard_assets_ios/Shaders/occlusion_test.vsh
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute vec4 vertex_position;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = mvp_matrix * vertex_position;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/simple_blit.fsh b/kraken_standard_assets_ios/Shaders/simple_blit.fsh
deleted file mode 100755
index abc6fe4..0000000
--- a/kraken_standard_assets_ios/Shaders/simple_blit.fsh
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-varying mediump vec2 textureCoordinate;
-
-uniform sampler2D diffuseTexture;
-
-void main()
-{
- gl_FragColor = texture2D(diffuseTexture, textureCoordinate);
-}
diff --git a/kraken_standard_assets_ios/Shaders/simple_blit.vsh b/kraken_standard_assets_ios/Shaders/simple_blit.vsh
deleted file mode 100755
index fbc9319..0000000
--- a/kraken_standard_assets_ios/Shaders/simple_blit.vsh
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-varying mediump vec2 textureCoordinate;
-
-attribute vec4 vertex_position;
-attribute lowp vec4 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = mvp_matrix * vertex_position;
- textureCoordinate = vertex_uv.xy;
-}
diff --git a/kraken_standard_assets_ios/Shaders/sky_box.fsh b/kraken_standard_assets_ios/Shaders/sky_box.fsh
deleted file mode 100755
index cc4326a..0000000
--- a/kraken_standard_assets_ios/Shaders/sky_box.fsh
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// sky_box.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-uniform samplerCube diffuseTexture;
-
-varying mediump vec3 texCoord;
-
-void main() {
- gl_FragColor = textureCube(diffuseTexture, normalize(texCoord));
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/sky_box.vsh b/kraken_standard_assets_ios/Shaders/sky_box.vsh
deleted file mode 100755
index 2a50437..0000000
--- a/kraken_standard_assets_ios/Shaders/sky_box.vsh
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// sky_box.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-//
-
-attribute vec4 vertex_position;
-//attribute lowp vec4 vertex_uv;
-//
-//varying mediump vec2 textureCoordinate;
-
-varying mediump vec3 texCoord;
-uniform highp mat4 inv_mvp_matrix_no_translate; // Inverse of the model-view-projection matrix, without view translation component
-uniform mediump vec4 viewport;
-
-void main()
-{
- gl_Position = vec4(vertex_position.xy, 1.0, 1.0);
-
- vec4 t = inv_mvp_matrix_no_translate * vec4(vertex_position.xy, 1.0, 1.0);
- t *= 1.0 / t.w;
- texCoord = vec3(t);
-}
diff --git a/kraken_standard_assets_ios/Shaders/sprite.fsh b/kraken_standard_assets_ios/Shaders/sprite.fsh
deleted file mode 100755
index 4519d5d..0000000
--- a/kraken_standard_assets_ios/Shaders/sprite.fsh
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// sprite.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-varying mediump vec2 texCoord;
-uniform sampler2D diffuseTexture;
-uniform lowp float material_alpha;
-
-void main() {
- gl_FragColor = vec4(vec3(texture2D(diffuseTexture, texCoord)), 1.0) * material_alpha;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/sprite.vsh b/kraken_standard_assets_ios/Shaders/sprite.vsh
deleted file mode 100755
index 1e8682a..0000000
--- a/kraken_standard_assets_ios/Shaders/sprite.vsh
+++ /dev/null
@@ -1,41 +0,0 @@
-//
-// sprite.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute mediump vec2 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-uniform mediump vec4 viewport;
-
-varying mediump vec2 texCoord;
-
-void main() {
- texCoord = vertex_uv;
- gl_Position = mvp_matrix * vec4(vertex_uv.x * 2.0 - 1.0, vertex_uv.y * 2.0 - 1.0, 0.0, 1.0);
-}
diff --git a/kraken_standard_assets_ios/Shaders/visualize_overlay.fsh b/kraken_standard_assets_ios/Shaders/visualize_overlay.fsh
deleted file mode 100755
index 42aae77..0000000
--- a/kraken_standard_assets_ios/Shaders/visualize_overlay.fsh
+++ /dev/null
@@ -1,35 +0,0 @@
-//
-// visualize_overlay.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-void main() {
- gl_FragColor = vec4(0.0, 0.05, 0.05, 0.0);
-}
-
diff --git a/kraken_standard_assets_ios/Shaders/visualize_overlay.vsh b/kraken_standard_assets_ios/Shaders/visualize_overlay.vsh
deleted file mode 100755
index ade5a63..0000000
--- a/kraken_standard_assets_ios/Shaders/visualize_overlay.vsh
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// visualize_overlay.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute vec4 vertex_position;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = mvp_matrix * vertex_position;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_ios/Shaders/volumetric_fog.fsh b/kraken_standard_assets_ios/Shaders/volumetric_fog.fsh
deleted file mode 100755
index 247bedb..0000000
--- a/kraken_standard_assets_ios/Shaders/volumetric_fog.fsh
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-#extension GL_EXT_shadow_samplers : require
-
-varying mediump vec4 shadowMapCoord1;
-uniform sampler2DShadow shadowTexture1;
-uniform mediump vec3 light_color;
-
-void main()
-{
- gl_FragColor = vec4(light_color, 1.0) * shadow2DProjEXT(shadowTexture1, shadowMapCoord1);
-}
diff --git a/kraken_standard_assets_ios/Shaders/volumetric_fog.vsh b/kraken_standard_assets_ios/Shaders/volumetric_fog.vsh
deleted file mode 100755
index 2f98b72..0000000
--- a/kraken_standard_assets_ios/Shaders/volumetric_fog.vsh
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute highp vec4 vertex_position;
-uniform highp mat4 inv_mvp_matrix;
-
-uniform highp vec2 slice_depth_scale; // First component is the depth for the nearest plane, in view space. Second component is the distance between planes, in view space
-
-uniform highp mat4 shadow_mvp1;
-varying mediump vec4 shadowMapCoord1;
-
-uniform highp mat4 projection_matrix;
-
-
-void main()
-{
- highp vec4 d = projection_matrix * vec4(0.0, 0.0, slice_depth_scale.x + vertex_position.z * slice_depth_scale.y, 1.0);
- d /= d.w;
- gl_Position = vec4(vertex_position.x, vertex_position.y, d.z, 1.0);
-
-
- shadowMapCoord1 = inv_mvp_matrix * gl_Position;
- shadowMapCoord1 /= shadowMapCoord1.w;
- shadowMapCoord1.w = 1.0;
- shadowMapCoord1 = shadow_mvp1 * shadowMapCoord1;
-
-}
diff --git a/kraken_standard_assets_ios/Shaders/volumetric_fog_downsampled.fsh b/kraken_standard_assets_ios/Shaders/volumetric_fog_downsampled.fsh
deleted file mode 100755
index aca802c..0000000
--- a/kraken_standard_assets_ios/Shaders/volumetric_fog_downsampled.fsh
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-#extension GL_EXT_shadow_samplers : require
-
-varying mediump vec4 shadowMapCoord1;
-uniform sampler2DShadow shadowTexture1;
-uniform lowp sampler2D depthFrame;
-uniform mediump vec4 viewport;
-uniform mediump vec3 light_color;
-
-void main()
-{
- if(gl_FragCoord.z > texture2D(depthFrame, vec2(gl_FragCoord.xy / viewport.zw)).r) discard;
-
- gl_FragColor = vec4(light_color, 1.0) * shadow2DProjEXT(shadowTexture1, shadowMapCoord1);
-}
diff --git a/kraken_standard_assets_ios/Shaders/volumetric_fog_downsampled.vsh b/kraken_standard_assets_ios/Shaders/volumetric_fog_downsampled.vsh
deleted file mode 100755
index 9bde6f3..0000000
--- a/kraken_standard_assets_ios/Shaders/volumetric_fog_downsampled.vsh
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-attribute highp vec4 vertex_position;
-uniform highp mat4 inv_mvp_matrix;
-
-uniform highp vec2 slice_depth_scale; // First component is the depth for the nearest plane, in view space. Second component is the distance between planes, in view space
-
-uniform highp mat4 shadow_mvp1;
-varying mediump vec4 shadowMapCoord1;
-
-uniform highp mat4 projection_matrix;
-
-void main()
-{
- highp vec4 d = projection_matrix * vec4(0.0, 0.0, slice_depth_scale.x + vertex_position.z * slice_depth_scale.y, 1.0);
- d /= d.w;
- gl_Position = vec4(vertex_position.x, vertex_position.y, d.z, 1.0);
-
-
- shadowMapCoord1 = inv_mvp_matrix * gl_Position;
- shadowMapCoord1 /= shadowMapCoord1.w;
- shadowMapCoord1.w = 1.0;
- shadowMapCoord1 = shadow_mvp1 * shadowMapCoord1;
-
-}
diff --git a/kraken_standard_assets_ios/font.pvr b/kraken_standard_assets_ios/font.pvr
deleted file mode 100755
index 7d91f4e..0000000
Binary files a/kraken_standard_assets_ios/font.pvr and /dev/null differ
diff --git a/kraken_standard_assets_osx/Resources-Info.plist b/kraken_standard_assets_osx/Resources-Info.plist
deleted file mode 100755
index c71a54e..0000000
--- a/kraken_standard_assets_osx/Resources-Info.plist
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- English
- CFBundleExecutable
- ${EXECUTABLE_NAME}
- CFBundleIconFile
-
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- ${PRODUCT_NAME}
- CFBundlePackageType
- BNDL
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1
- CFPlugInDynamicRegisterFunction
-
- CFPlugInDynamicRegistration
- NO
- CFPlugInFactories
-
- 00000000-0000-0000-0000-000000000000
- MyFactoryFunction
-
- CFPlugInTypes
-
- 00000000-0000-0000-0000-000000000000
-
- 00000000-0000-0000-0000-000000000000
-
-
- CFPlugInUnloadFunction
-
- NSHumanReadableCopyright
- Copyright © 2013 Kearwood Software. All rights reserved.
-
-
diff --git a/kraken_standard_assets_osx/Shaders/ObjectShader_osx.fsh b/kraken_standard_assets_osx/Shaders/ObjectShader_osx.fsh
deleted file mode 100755
index 52952e3..0000000
--- a/kraken_standard_assets_osx/Shaders/ObjectShader_osx.fsh
+++ /dev/null
@@ -1,425 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-//#extension GL_EXT_shadow_samplers : require
-
-out vec4 colorOut;
-
-#if ENABLE_RIM_COLOR == 1
- uniform lowp vec3 rim_color;
- uniform mediump float rim_power;
-#endif
-
-#if FOG_TYPE > 0
- // FOG_TYPE 1 - Linear
- // FOG_TYPE 2 - Exponential
- // FOG_TYPE 3 - Exponential squared
- uniform lowp vec3 fog_color;
- uniform mediump float fog_near;
- #if FOG_TYPE == 1
- uniform mediump float fog_far;
- uniform mediump float fog_scale;
- #endif
-
- #if FOG_TYPE > 1
- uniform mediump float fog_density;
- #endif
-
- #if FOG_TYPE == 2
- uniform mediump float fog_density_premultiplied_exponential;
- #endif
- #if FOG_TYPE == 3
- uniform mediump float fog_density_premultiplied_squared;
- #endif
-#endif
-
-
-#if ENABLE_PER_PIXEL == 1 || GBUFFER_PASS == 1
- uniform mediump float material_shininess;
- #if HAS_NORMAL_MAP == 1
- uniform sampler2D normalTexture;
- #else
- in mediump vec3 normal;
- #endif
-
- #if HAS_DIFFUSE_MAP == 1 || HAS_NORMAL_MAP == 1 || HAS_SPEC_MAP == 1 || HAS_REFLECTION_MAP == 1
- in highp vec2 texCoord;
- #endif
- #if HAS_NORMAL_MAP_OFFSET == 1 || HAS_NORMAL_MAP_SCALE == 1
- in highp vec2 normal_uv;
- #else
- #define normal_uv texCoord
- #endif
-#else
- #if HAS_DIFFUSE_MAP == 1
- in highp vec2 texCoord;
- #endif
-#endif
-
-
-#if GBUFFER_PASS == 3
- uniform sampler2D gbuffer_frame;
- uniform sampler2D gbuffer_depth;
-#endif
-
-#if GBUFFER_PASS == 1
- #if HAS_NORMAL_MAP == 1
- in highp mat3 tangent_to_view_matrix;
- #else
- uniform highp mat4 model_view_inverse_transpose_matrix;
- #endif
-
- #if HAS_DIFFUSE_MAP == 1 && ALPHA_TEST == 1
- uniform sampler2D diffuseTexture;
- #if HAS_DIFFUSE_MAP_OFFSET == 1 || HAS_DIFFUSE_MAP_SCALE == 1
- in highp vec2 diffuse_uv;
- #else
- #define diffuse_uv texCoord
- #endif
- #endif
-#else
- uniform lowp vec3 material_ambient, material_diffuse, material_specular;
- uniform lowp float material_alpha;
-
-
- #if HAS_DIFFUSE_MAP == 1
- uniform sampler2D diffuseTexture;
- #endif
-
- #if HAS_SPEC_MAP == 1
- uniform sampler2D specularTexture;
- #endif
-
- #if HAS_REFLECTION_MAP == 1
- uniform sampler2D reflectionTexture;
- #endif
-
- #if ENABLE_RIM_COLOR == 1
- #define NEED_EYEVEC
- #endif
-
- #if HAS_REFLECTION_CUBE_MAP == 1
- uniform lowp vec3 material_reflection;
- uniform samplerCube reflectionCubeTexture;
- #if HAS_NORMAL_MAP == 1
- in highp mat3 tangent_to_world_matrix;
- #define NEED_EYEVEC
-
- uniform highp mat4 model_matrix;
- #else
- in mediump vec3 reflectionVec;
- #endif
- #endif
-
- #ifdef NEED_EYEVEC
- in mediump vec3 eyeVec;
- #endif
-
-
- #if SHADOW_QUALITY >= 1
- #ifdef GL_EXT_shadow_samplers
- uniform sampler2DShadow shadowTexture1;
- #else
- uniform sampler2D shadowTexture1;
- #endif
- in highp vec4 shadowMapCoord1;
- #endif
-
- #if HAS_LIGHT_MAP == 1
- uniform sampler2D lightmapTexture;
- in mediump vec2 lightmap_uv;
- #endif
-
- #if SHADOW_QUALITY >= 2
- uniform sampler2D shadowTexture2;
- in highp vec4 shadowMapCoord2;
- #endif
-
- #if SHADOW_QUALITY >= 3
- uniform sampler2D shadowTexture3;
- in highp vec4 shadowMapCoord3;
- #endif
-
- #if ENABLE_PER_PIXEL == 1
- in mediump vec3 lightVec;
- in mediump vec3 halfVec;
- #else
- in mediump float lamberFactor;
- in mediump float specularFactor;
- #endif
-
- #if (HAS_SPEC_MAP_OFFSET == 1|| HAS_SPEC_MAP_SCALE == 1) && ENABLE_PER_PIXEL == 1
- in mediump vec2 spec_uv;
- #else
- #define spec_uv texCoord
- #endif
-
- #if (HAS_REFLECTION_MAP_OFFSET == 1|| HAS_REFLECTION_MAP_SCALE == 1) && ENABLE_PER_PIXEL == 1
- in mediump vec2 reflection_uv;
- #else
- #define reflection_uv texCoord
- #endif
-
- #if HAS_DIFFUSE_MAP_OFFSET == 1 || HAS_DIFFUSE_MAP_SCALE == 1
- in highp vec2 diffuse_uv;
- #else
- #define diffuse_uv texCoord
- #endif
-
-#endif
-
-#if GBUFFER_PASS == 1 || GBUFFER_PASS == 3
- uniform mediump vec4 viewport;
-#endif
-
-void main()
-{
- #if ALPHA_TEST == 1 && HAS_DIFFUSE_MAP == 1
- mediump vec4 diffuseMaterial = texture(diffuseTexture, diffuse_uv);
- if(diffuseMaterial.a < 0.5) discard;
- #endif
-
- #if GBUFFER_PASS == 1 && ALPHA_TEST == 1
- if(texture(diffuseTexture, diffuse_uv).a < 0.5) discard;
- #endif
-
- #if GBUFFER_PASS == 2 || GBUFFER_PASS == 3
- mediump vec2 gbuffer_uv = vec2(gl_FragCoord.xy / viewport.zw); // FINDME, TODO - Dependent Texture Read adding latency, due to calculation of texture UV within fragment -- move to vertex shader?
- #endif
-
- #if GBUFFER_PASS == 3
- lowp vec4 gbuffer_sample = texture(gbuffer_frame, gbuffer_uv);
- mediump vec3 gbuffer_lamber_factor = gbuffer_sample.rgb * 5.0;
- lowp float gbuffer_specular_factor = gbuffer_sample.a;
- #endif
-
- #if GBUFFER_PASS == 1
- #if HAS_NORMAL_MAP == 1
- // lookup normal from normal map, move from [0,1] to [-1, 1] range, normalize
- mediump vec3 normal = normalize(2.0 * texture(normalTexture,normal_uv).rgb - 1.0);
- mediump vec3 view_space_normal = tangent_to_view_matrix * normal;
- #else
- mediump vec3 view_space_normal = vec3(model_view_inverse_transpose_matrix * vec4(normal, 1.0));
- #endif
- colorOut = vec4(view_space_normal * 0.5 + 0.5, material_shininess / 100.0);
- #else
- #if HAS_DIFFUSE_MAP == 1
- #if ALPHA_TEST == 1
- diffuseMaterial.a = 1.0;
- #else
- mediump vec4 diffuseMaterial = texture(diffuseTexture, diffuse_uv);
- #endif
-
- #else
- mediump vec4 diffuseMaterial = vec4(1.0);
- #endif
-
- #if ENABLE_PER_PIXEL == 1
- #if HAS_NORMAL_MAP == 1
- // lookup normal from normal map, move from [0,1] to [-1, 1] range, normalize
- mediump vec3 normal = normalize(2.0 * texture(normalTexture,normal_uv).rgb - 1.0);
- #endif
-
- #if GBUFFER_PASS == 3
- mediump vec3 lamberFactor = gbuffer_lamber_factor;
- #else
- mediump float lamberFactor = max(0.0,dot(lightVec, normal));
- #endif
- mediump float specularFactor = 0.0;
- if(material_shininess > 0.0) {
- #if GBUFFER_PASS == 3
- specularFactor = gbuffer_specular_factor;
- #else
- mediump float halfVecDot = dot(halfVec,normal);
- if(halfVecDot > 0.0) {
- specularFactor = max(0.0,pow(halfVecDot, material_shininess));
- }
- #endif
- }
-
- #ifdef GL_EXT_shadow_samplers
- #if SHADOW_QUALITY == 1
- lowp float shadow = shadow2DProjEXT(shadowTexture1, shadowMapCoord1);
- lamberFactor *= shadow;
- specularFactor *= shadow;
- #endif
- #else
-
- #if SHADOW_QUALITY == 1
-
- highp float shadowMapDepth = 1.0;
- highp float vertexShadowDepth = 1.0;
- highp vec2 shadowMapPos = (shadowMapCoord1 / shadowMapCoord1.w).st;
-
- if(shadowMapCoord1.x >= -1.0 && shadowMapCoord1.x <= 1.0 && shadowMapCoord1.y >= -1.0 && shadowMapCoord1.y <= 1.0 && shadowMapCoord1.z >= 0.0 && shadowMapCoord1.z <= 1.0) {
- #if DEBUG_PSSM == 1
- diffuseMaterial = diffuseMaterial * vec4(0.75, 0.75, 0.5, 1.0) + vec4(0.0, 0.0, 0.5, 0.0);
- #endif
- shadowMapDepth = texture(shadowTexture1, shadowMapPos).z;
- vertexShadowDepth = (shadowMapCoord1 / shadowMapCoord1.w).z;
- }
- #endif
-
- #if SHADOW_QUALITY >= 2
-
- highp float shadowMapDepth = 1.0;
- highp float vertexShadowDepth = 1.0;
-
- if(shadowMapCoord1.x >= -1.0 && shadowMapCoord1.x <= 1.0 && shadowMapCoord1.y >= -1.0 && shadowMapCoord1.y <= 1.0 && shadowMapCoord1.z >= 0.0 && shadowMapCoord1.z <= 1.0) {
- #if DEBUG_PSSM == 1
- diffuseMaterial = diffuseMaterial * vec4(0.75, 0.75, 0.5, 1.0) + vec4(0.0, 0.0, 0.5 * diffuseMaterial.a, 0.0);
- #endif
- highp vec2 shadowMapPos = (shadowMapCoord1 / shadowMapCoord1.w).st;
- shadowMapDepth = texture(shadowTexture1, shadowMapPos).z;
- vertexShadowDepth = (shadowMapCoord1 / shadowMapCoord1.w).z;
- } else if(shadowMapCoord2.s >= -1.0 && shadowMapCoord2.s <= 1.0 && shadowMapCoord2.t >= -1.0 && shadowMapCoord2.t <= 1.0 && shadowMapCoord2.z >= 0.0 && shadowMapCoord2.z <= 1.0) {
- #if DEBUG_PSSM == 1
- diffuseMaterial = diffuseMaterial * vec4(0.75, 0.50, 0.75, 1.0) + vec4(0.0, 0.5 * diffuseMaterial.a, 0.0, 0.0);
- #endif
- highp vec2 shadowMapPos = (shadowMapCoord2 / shadowMapCoord2.w).st;
- shadowMapDepth = texture(shadowTexture2, shadowMapPos).z;
- vertexShadowDepth = (shadowMapCoord2 / shadowMapCoord2.w).z;
- }
- #if SHADOW_QUALITY >= 3
- else if(shadowMapCoord3.s >= -1.0 && shadowMapCoord3.s <= 1.0 && shadowMapCoord3.t >= -1.0 && shadowMapCoord3.t <= 1.0 && shadowMapCoord3.z >= 0.0 && shadowMapCoord3.z <= 1.0) {
- #if DEBUG_PSSM == 1
- diffuseMaterial = diffuseMaterial * vec4(0.50, 0.75, 0.75, 1.0) + vec4(0.5 * diffuseMaterial.a, 0.0, 0.0, 0.0);
- #endif
- highp vec2 shadowMapPos = (shadowMapCoord3 / shadowMapCoord3.w).st;
- shadowMapDepth = texture(shadowTexture3, shadowMapPos).z;
- vertexShadowDepth = (shadowMapCoord3 / shadowMapCoord3.w).z;
- }
-
- #endif
- #endif
-
- #if SHADOW_QUALITY >= 1
- if(vertexShadowDepth >= shadowMapDepth && shadowMapDepth < 1.0) {
- #if GBUFFER_PASS == 3
- lamberFactor = vec3(0.0);
- #else
- lamberFactor = 0.0;
- #endif
- specularFactor = 0.0;
- }
- #endif
- #endif
- #endif
-
- #if ENABLE_AMBIENT == 1
- // -------------------- Add ambient light and alpha component --------------------
- colorOut = vec4(vec3(diffuseMaterial) * material_ambient, 0.0);
- #else
- colorOut = vec4(0.0, 0.0, 0.0, 0.0);
- #endif
-
- #if ENABLE_DIFFUSE == 1
- // -------------------- Add diffuse light --------------------
- colorOut += diffuseMaterial * vec4(material_diffuse * lamberFactor, 1.0);
- #endif
-
- // -------------------- Apply material_alpha --------------------
-
- #if ALPHA_BLEND == 1
- colorOut.a = diffuseMaterial.a;
- colorOut *= material_alpha;
- #endif
-
- // -------------------- Add specular light --------------------
- // Additive, not masked against diffuse alpha
- #if ENABLE_SPECULAR == 1
- #if HAS_SPEC_MAP == 1 && ENABLE_PER_PIXEL == 1
- colorOut.rgb += material_specular * vec3(texture(specularTexture, spec_uv)) * specularFactor;
- #else
- colorOut.rgb += material_specular * specularFactor;
- #endif
- #endif
-
- // -------------------- Multiply light map --------------------
- #if HAS_LIGHT_MAP == 1
- mediump vec3 lightMapColor = vec3(texture(lightmapTexture, lightmap_uv));
- //colorOut = vec4(colorOut.r * lightMapColor.r, colorOut.g * lightMapColor.g, colorOut.b * lightMapColor.b, colorOut.a);
- colorOut.rgb *= lightMapColor;
- #endif
-
-
- // -------------------- Add reflected light --------------------
- #if HAS_REFLECTION_CUBE_MAP == 1
- // Reflected light is additive and not modulated by the light map
- #if HAS_NORMAL_MAP == 1
- // Calculate reflection vector as I - 2.0 * dot(N, I) * N
- mediump vec3 incidenceVec = -normalize(eyeVec);
- highp vec3 world_space_normal = tangent_to_world_matrix * normal;
- mediump vec3 reflectionVec = mat3(model_matrix) * (incidenceVec - 2.0 * dot(world_space_normal, incidenceVec) * world_space_normal);
- #endif
- #if HAS_REFLECTION_MAP == 1
- colorOut += vec4(material_reflection, 0.0) * texture(reflectionTexture, reflection_uv) * vec4(texture(reflectionCubeTexture, reflectionVec).rgb, 1.0);
- #else
- colorOut += vec4(material_reflection, 0.0) * vec4(texture(reflectionCubeTexture, reflectionVec).rgb, 1.0);
- #endif
- #endif
-
- // -------------------- Apply Fog --------------------
- #if FOG_TYPE == 1 || FOG_TYPE == 2 || FOG_TYPE == 3
-
- #if FOG_TYPE == 1
- // Linear fog
- lowp float fog_alpha = clamp((fog_far - gl_FragCoord.z / gl_FragCoord.w) * fog_scale, 0.0, 1.0);
- #endif
-
- #if FOG_TYPE == 2
- // Exponential fog
- mediump float fog_z = gl_FragCoord.z / gl_FragCoord.w - fog_near;
- lowp float fog_alpha = clamp(exp2(fog_density_premultiplied_exponential * fog_z), 0.0, 1.0);
- #endif
-
- #if FOG_TYPE == 3
- // Exponential squared fog
- mediump float fog_z = max(gl_FragCoord.z / gl_FragCoord.w - fog_near, 0.0);
- lowp float fog_alpha = clamp(exp2(fog_density_premultiplied_squared * fog_z * fog_z), 0.0, 1.0);
- #endif
-
- #if ALPHA_BLEND == 1
- colorOut.rgb = mix(fog_color.rgb * colorOut.a, colorOut.rgb, fog_alpha);
- #else
- colorOut.rgb = mix(fog_color.rgb, colorOut.rgb, fog_alpha);
- #endif
- #endif
-
-
- #endif
-
- #if ENABLE_RIM_COLOR == 1
- lowp float rim = 1.0 - clamp(dot(normalize(eyeVec), normal), 0.0, 1.0);
-
- colorOut += vec4(rim_color, 1.0) * pow(rim, rim_power);
- #endif
-
- #if BONE_COUNT > 0
- colorOut.b = 1.0;
- #endif
-}
diff --git a/kraken_standard_assets_osx/Shaders/ObjectShader_osx.vsh b/kraken_standard_assets_osx/Shaders/ObjectShader_osx.vsh
deleted file mode 100755
index aadb768..0000000
--- a/kraken_standard_assets_osx/Shaders/ObjectShader_osx.vsh
+++ /dev/null
@@ -1,344 +0,0 @@
-//
-// Shader.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-
-in highp vec3 vertex_position, vertex_normal;
-#if HAS_NORMAL_MAP == 1
- in highp vec3 vertex_tangent;
-#endif
-in mediump vec2 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-#if BONE_COUNT > 0
- in highp vec4 bone_weights;
- in highp vec4 bone_indexes;
- uniform highp mat4 bone_transforms[BONE_COUNT];
-#else
- #define vertex_position_skinned vertex_position
- #define vertex_normal_skinned vertex_normal
- #define vertex_tangent_skinned vertex_tangent
-#endif
-
-
-
-#if ENABLE_PER_PIXEL == 1 || GBUFFER_PASS == 1
- #if HAS_DIFFUSE_MAP == 1 || HAS_NORMAL_MAP == 1 || HAS_SPEC_MAP == 1 || HAS_REFLECTION_MAP == 1
- out highp vec2 texCoord;
- #endif
- #if HAS_NORMAL_MAP == 1
- #if HAS_NORMAL_MAP_SCALE == 1
- uniform highp vec2 normalTexture_Scale;
- #endif
-
- #if HAS_NORMAL_MAP_OFFSET == 1
- uniform highp vec2 normalTexture_Offset;
- #endif
-
- #if HAS_NORMAL_MAP_OFFSET == 1 || HAS_NORMAL_MAP_SCALE == 1
- out highp vec2 normal_uv;
- #endif
- #else
- out mediump vec3 normal;
- #endif
-#else
- uniform mediump float material_shininess;
- #if HAS_DIFFUSE_MAP == 1
- out highp vec2 texCoord;
- #endif
-#endif
-
-#if GBUFFER_PASS == 1
- #if HAS_NORMAL_MAP == 1
- uniform highp mat4 model_view_inverse_transpose_matrix;
- out highp mat3 tangent_to_view_matrix;
- #endif
-#else
-
- uniform highp vec3 light_direction_model_space; // Must be normalized before entering shader
- uniform highp vec3 camera_position_model_space;
-
- #if HAS_LIGHT_MAP == 1
- in mediump vec2 vertex_lightmap_uv;
- out mediump vec2 lightmap_uv;
- #endif
-
- #if ENABLE_PER_PIXEL == 1
- out mediump vec3 lightVec;
- out mediump vec3 halfVec;
-
- #if HAS_SPEC_MAP_OFFSET == 1 || HAS_SPEC_MAP_SCALE == 1
- out highp vec2 spec_uv;
- #endif
-
- #if HAS_SPEC_MAP_SCALE == 1
- uniform highp vec2 specularTexture_Scale;
- #endif
-
- #if HAS_SPEC_MAP_OFFSET == 1
- uniform highp vec2 specularTexture_Offset;
- #endif
-
- #if HAS_REFLECTION_MAP_OFFSET == 1 || HAS_REFLECTION_MAP_SCALE == 1
- out highp vec2 reflection_uv;
- #endif
-
- #if HAS_REFLECTION_MAP_SCALE == 1
- uniform highp vec2 reflectionTexture_Scale;
- #endif
-
- #if HAS_REFLECTION_MAP_OFFSET == 1
- uniform highp vec2 reflectionTexture_Offset;
- #endif
-
- #if SHADOW_QUALITY >= 1
- uniform highp mat4 shadow_mvp1;
- out highp vec4 shadowMapCoord1;
- #endif
-
- #if SHADOW_QUALITY >= 2
- uniform highp mat4 shadow_mvp2;
- out highp vec4 shadowMapCoord2;
- #endif
-
- #if SHADOW_QUALITY >= 3
- uniform highp mat4 shadow_mvp3;
- out highp vec4 shadowMapCoord3;
- #endif
-
- #else
- out mediump float lamberFactor;
- out mediump float specularFactor;
- #endif
-
- #if ENABLE_RIM_COLOR == 1
- #define NEED_EYEVEC
- #endif
-
- #if HAS_REFLECTION_CUBE_MAP == 1
- #if HAS_NORMAL_MAP == 1
- #define NEED_EYEVEC
- uniform highp mat4 model_inverse_transpose_matrix;
- out highp mat3 tangent_to_world_matrix;
- #else
- uniform highp mat4 model_matrix;
- out mediump vec3 reflectionVec;
- #endif
- #endif
-
- #ifdef NEED_EYEVEC
- out mediump vec3 eyeVec;
- #endif
-
- #if HAS_DIFFUSE_MAP_SCALE == 1
- uniform highp vec2 diffuseTexture_Scale;
- #endif
-
- #if HAS_DIFFUSE_MAP_OFFSET == 1
- uniform highp vec2 diffuseTexture_Offset;
- #endif
-
- #if HAS_DIFFUSE_MAP_OFFSET == 1 || HAS_DIFFUSE_MAP_SCALE == 1
- out highp vec2 diffuse_uv;
- #endif
-
-#endif
-
-
-
-void main()
-{
-#if BONE_COUNT > 0
- mediump vec4 scaled_bone_indexes = bone_indexes;
- mediump vec4 scaled_bone_weights = bone_weights;
-
- //scaled_bone_indexes = vec4(0.0, 0.0, 0.0, 0.0);
- //scaled_bone_weights = vec4(1.0, 0.0, 0.0, 0.0);
-
- highp mat4 skin_matrix =
- bone_transforms[ int(scaled_bone_indexes.x) ] * scaled_bone_weights.x +
- bone_transforms[ int(scaled_bone_indexes.y) ] * scaled_bone_weights.y +
- bone_transforms[ int(scaled_bone_indexes.z) ] * scaled_bone_weights.z +
- bone_transforms[ int(scaled_bone_indexes.w) ] * scaled_bone_weights.w;
- //skin_matrix = bone_transforms[0];
- highp vec3 vertex_position_skinned = (skin_matrix * vec4(vertex_position, 1)).xyz;
-
- highp vec3 vertex_normal_skinned = normalize(mat3(skin_matrix) * vertex_normal);
- #if HAS_NORMAL_MAP == 1
- highp vec3 vertex_tangent_skinned = normalize(mat3(skin_matrix) * vertex_tangent);
- #endif
-
-#endif
-
- // Transform position
- gl_Position = mvp_matrix * vec4(vertex_position_skinned,1.0);
-
-
-
- #if HAS_DIFFUSE_MAP == 1 || (HAS_NORMAL_MAP == 1 && ENABLE_PER_PIXEL == 1) || (HAS_SPEC_MAP == 1 && ENABLE_PER_PIXEL == 1) || (HAS_REFLECTION_MAP == 1 && ENABLE_PER_PIXEL == 1)
- // Pass UV co-ordinates
- texCoord = vertex_uv.st;
- #endif
-
-
-
-
- // Scaled and translated normal map UV's
- #if (HAS_NORMAL_MAP_OFFSET == 1 || HAS_NORMAL_MAP_SCALE == 1) && ENABLE_PER_PIXEL == 1
- normal_uv = texCoord;
-
- #if HAS_NORMAL_MAP_OFFSET == 1
- normal_uv += normalTexture_Offset;
- #endif
-
- #if HAS_NORMAL_MAP_SCALE == 1
- normal_uv *= normalTexture_Scale;
- #endif
-
- #endif
-
- #if GBUFFER_PASS != 1 || ALPHA_TEST == 1
- // Scaled and translated diffuse map UV's
- #if HAS_DIFFUSE_MAP_OFFSET == 1 || HAS_DIFFUSE_MAP_SCALE == 1
- diffuse_uv = texCoord;
-
- #if HAS_DIFFUSE_MAP_OFFSET == 1
- diffuse_uv += diffuseTexture_Offset;
- #endif
-
- #if HAS_DIFFUSE_MAP_SCALE == 1
- diffuse_uv *= diffuseTexture_Scale;
- #endif
- #endif
- #endif
-
-
- #if GBUFFER_PASS == 1
- #if HAS_NORMAL_MAP == 1
- mediump vec3 a_bitangent = cross(vertex_normal_skinned, vertex_tangent_skinned);
- tangent_to_view_matrix[0] = vec3(model_view_inverse_transpose_matrix * vec4(vertex_tangent_skinned, 1.0));
- tangent_to_view_matrix[1] = vec3(model_view_inverse_transpose_matrix * vec4(a_bitangent, 1.0));
- tangent_to_view_matrix[2] = vec3(model_view_inverse_transpose_matrix * vec4(vertex_normal_skinned, 1.0));
- #else
- normal = vertex_normal_skinned;
- #endif
- #else
-
- #if HAS_REFLECTION_CUBE_MAP == 1
- #if HAS_NORMAL_MAP == 1
-
- #else
- // Calculate reflection vector as I - 2.0 * dot(N, I) * N
- mediump vec3 eyeVec = normalize(camera_position_model_space - vertex_position_skinned);
- mediump vec3 incidenceVec = -eyeVec;
- reflectionVec = mat3(model_matrix) * (incidenceVec - 2.0 * dot(vertex_normal_skinned, incidenceVec) * vertex_normal_skinned);
- #endif
- #endif
-
- #ifdef NEED_EYEVEC
- eyeVec = normalize(camera_position_model_space - vertex_position_skinned);
- #endif
-
- #if HAS_LIGHT_MAP == 1
- // Pass shadow UV co-ordinates
- lightmap_uv = vertex_lightmap_uv.st;
- #endif
-
-
-
- #if ENABLE_PER_PIXEL == 1
- // Scaled and translated specular map UV's
- #if HAS_SPEC_MAP_OFFSET == 1 || HAS_SPEC_MAP_SCALE == 1
- spec_uv = texCoord;
- #if HAS_SPEC_MAP_OFFSET == 1
- spec_uv += specularTexture_Offset;
- #endif
-
- #if HAS_SPEC_MAP_SCALE == 1
- spec_uv *= specularTexture_Scale;
- #endif
- #endif
-
- // Scaled and translated reflection map UV's
- #if HAS_REFLECTION_MAP_OFFSET == 1 || HAS_REFLECTION_MAP_SCALE == 1
- reflection_uv = texCoord;
- #if HAS_REFLECTION_MAP_OFFSET == 1
- reflection_uv += reflectionTexture_Offset;
- #endif
-
- #if HAS_REFLECTION_MAP_SCALE == 1
- reflection_uv *= reflectionTexture_Scale;
- #endif
- #endif
-
-
- #if SHADOW_QUALITY >= 1
- shadowMapCoord1 = shadow_mvp1 * vec4(vertex_position_skinned,1.0);
- #endif
-
- #if SHADOW_QUALITY >= 2
- shadowMapCoord2 = shadow_mvp2 * vec4(vertex_position_skinned,1.0);
- #endif
-
- #if SHADOW_QUALITY >= 3
- shadowMapCoord3 = shadow_mvp3 * vec4(vertex_position_skinned,1.0);
- #endif
-
- // ----------- Directional Light (Sun) -----------
- #if HAS_NORMAL_MAP == 1
- // ----- Calculate per-pixel lighting in tangent space, for normal mapping ------
- mediump vec3 a_bitangent = cross(vertex_normal_skinned, vertex_tangent_skinned);
- #if HAS_REFLECTION_CUBE_MAP == 0
- // The cube map reflections also require an eyeVec as a varying attribute when normal mapping, so only re-calculate here when needed
- mediump vec3 eyeVec = normalize(camera_position_model_space - vertex_position_skinned);
- #else
- tangent_to_world_matrix[0] = vec3(model_inverse_transpose_matrix * vec4(vertex_tangent_skinned, 1.0));
- tangent_to_world_matrix[1] = vec3(model_inverse_transpose_matrix * vec4(a_bitangent, 1.0));
- tangent_to_world_matrix[2] = vec3(model_inverse_transpose_matrix * vec4(vertex_normal_skinned, 1.0));
- #endif
-
- lightVec = normalize(vec3(dot(light_direction_model_space, vertex_tangent_skinned), dot(light_direction_model_space, a_bitangent), dot(light_direction_model_space, vertex_normal_skinned)));
- halfVec = normalize(vec3(dot(eyeVec, vertex_tangent_skinned), dot(eyeVec, a_bitangent), dot(eyeVec, vertex_normal_skinned)));
- halfVec = normalize(halfVec + lightVec); // Normalizing anyways, no need to divide by 2
- #else
- // ------ Calculate per-pixel lighting without normal mapping ------
- normal = vertex_normal_skinned;
- lightVec = light_direction_model_space;
- halfVec = normalize((normalize(camera_position_model_space - vertex_position_skinned) + lightVec)); // Normalizing anyways, no need to divide by 2
- #endif
- #else
-
- // ------ Calculate per-vertex lighting ------
- mediump vec3 halfVec = normalize((normalize(camera_position_model_space - vertex_position_skinned) + light_direction_model_space)); // Normalizing anyways, no need to divide by 2
- lamberFactor = max(0.0,dot(light_direction_model_space, vertex_normal_skinned));
- specularFactor = max(0.0,pow(dot(halfVec,vertex_normal_skinned), material_shininess));
- #endif
- #endif
-}
diff --git a/kraken_standard_assets_osx/Shaders/PostShader_osx.fsh b/kraken_standard_assets_osx/Shaders/PostShader_osx.fsh
deleted file mode 100755
index eba229c..0000000
--- a/kraken_standard_assets_osx/Shaders/PostShader_osx.fsh
+++ /dev/null
@@ -1,190 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-#define ENABLE_VIDEO_BG 0
-#define PIXEL_SHIFT_1 0.001
-#define PIXEL_SHIFT_2 0.002
-#define PIXEL_SHIFT_3 0.003
-#define PIXEL_SHIFT_4 0.004
-
-in vec2 textureCoordinate;
-
-#if ENABLE_VIDEO_BG == 1
-uniform sampler2D videoFrame;
-#endif
-
-#if ENABLE_FADE_COLOR == 1
-uniform vec4 fade_color;
-#endif
-
-uniform sampler2D renderFrame;
-uniform sampler2D depthFrame;
-
-#if VOLUMETRIC_ENVIRONMENT_DOWNSAMPLED == 1
-uniform sampler2D volumetricEnvironmentFrame;
-#endif
-
-out vec4 colorOut;
-
-void main()
-{
-
- vec4 renderColor = texture(renderFrame, textureCoordinate);
-#if DOF_QUALITY > 0 || ENABLE_FLASH == 1
- float depth = texture(depthFrame, textureCoordinate).r;
-#endif
- vec4 pixelColor = renderColor;
-
-
-#if DOF_QUALITY == 2
-
- // Render high quality circle of confusion
- // __XXX__
- // _XXXXX_
- // _XXXXX_
- // _XXXXX_
- // __XXX__
- float cf1 = PIXEL_SHIFT_1;
- float cf2 = PIXEL_SHIFT_2;
-
- float bx1 = textureCoordinate.s + cf1;
- float bx2 = textureCoordinate.s + cf2;
- float bxm1 = textureCoordinate.s - cf1;
- float bxm2 = textureCoordinate.s - cf2;
-
- float by1 = textureCoordinate.t + cf1;
- float by2 = textureCoordinate.t + cf2;
- float bym1 = textureCoordinate.t - cf1;
- float bym2 = textureCoordinate.t - cf2;
-
- pixelColor += texture(renderFrame, vec2(bx1, textureCoordinate.t));
- pixelColor += texture(renderFrame, vec2(bxm1, textureCoordinate.t));
- pixelColor += texture(renderFrame, vec2(bx2, textureCoordinate.t));
- pixelColor += texture(renderFrame, vec2(bxm2, textureCoordinate.t));
-
- pixelColor += texture(renderFrame, vec2(textureCoordinate.s, by1));
- pixelColor += texture(renderFrame, vec2(bx1, by1));
- pixelColor += texture(renderFrame, vec2(bxm1, by1));
- pixelColor += texture(renderFrame, vec2(bx2, by1));
- pixelColor += texture(renderFrame, vec2(bxm2, by1));
-
- pixelColor += texture(renderFrame, vec2(textureCoordinate.s, by2));
- pixelColor += texture(renderFrame, vec2(bx1, by2));
- pixelColor += texture(renderFrame, vec2(bxm1, by2));
-
- pixelColor += texture(renderFrame, vec2(textureCoordinate.s,bym1));
- pixelColor += texture(renderFrame, vec2(bx1,bym1));
- pixelColor += texture(renderFrame, vec2(bxm1,bym1));
- pixelColor += texture(renderFrame, vec2(bx2,bym1));
- pixelColor += texture(renderFrame, vec2(bxm2,bym1));
-
- pixelColor += texture(renderFrame, vec2(bx1, bym2));
- pixelColor += texture(renderFrame, vec2(bx1, bym2));
- pixelColor += texture(renderFrame, vec2(bxm1, bym2));
- pixelColor /= 21.0;
-
-#endif
-// DOF_QUALITY == 2
-
-#if DOF_QUALITY == 1
-
- // Render low quality circle of confusion
- // ___X___
- // __XXX__
- // _XXXXX_
- // __XXX__
- // ___X___
- pixelColor += texture(renderFrame, textureCoordinate + vec2(0, -PIXEL_SHIFT_2));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(-PIXEL_SHIFT_1, -PIXEL_SHIFT_1));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(0, -PIXEL_SHIFT_1));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(+PIXEL_SHIFT_1, -PIXEL_SHIFT_1));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(-PIXEL_SHIFT_2, 0));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(-PIXEL_SHIFT_1, 0));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(+PIXEL_SHIFT_1, 0));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(+PIXEL_SHIFT_2, 0));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(-PIXEL_SHIFT_1, -PIXEL_SHIFT_1));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(0, -PIXEL_SHIFT_1));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(+PIXEL_SHIFT_1, -PIXEL_SHIFT_1));
- pixelColor += texture(renderFrame, textureCoordinate + vec2(0, -PIXEL_SHIFT_2));
- pixelColor /= 13.0;
-
-#endif
-// DOF_QUALITY == 1
-
-#if DOF_QUALITY > 0
- float focusDepth = texture(depthFrame, vec2(0.5, 0.5)).r;
- float blurAmount = clamp((depth - DOF_DEPTH - focusDepth) / DOF_FALLOFF, 0.0, 1.0);
- pixelColor = pixelColor * blurAmount + renderColor * (1.0 - blurAmount);
-#endif
-
- // ---- DEPTH_OF_FIELD END ----
-
-
-
-
- // ---- NIGHT_TIME START ----
-#if ENABLE_FLASH == 1
- // Un-comment to enable night time / flash effect
- pixelColor *= vec4(vec3(1.0 - clamp((depth - FLASH_DEPTH) / FLASH_FALLOFF, 0.0, 1.0)) * FLASH_INTENSITY, 1.0);
- //pixelColor *= vec4(vec3(clamp(1.0 / (depth - FLASH_DEPTH) * FLASH_FALLOFF, 0.0, 1.0) * FLASH_INTENSITY), 1.0);
-
-#endif
- // ---- NIGHT_TIME END ----
-
- // ---- VIDEO_BG START ----
-
-
- // ---- VIDEO_BG END ----
-
-#if VOLUMETRIC_ENVIRONMENT_DOWNSAMPLED == 1
- pixelColor += texture(volumetricEnvironmentFrame, textureCoordinate);
-#endif
-
-
- // ---- VIGNETTE START ----
-
- // Render vignette effect
-
-#if ENABLE_VIGNETTE == 1
- pixelColor *= vec4(vec3(clamp(1.0 - (distance(textureCoordinate, vec2(0.5, 0.5)) - VIGNETTE_RADIUS) / VIGNETTE_FALLOFF, 0.0, 1.0)), 1.0);
-#endif
- // ---- VIGNETTE END ----
-
-#if ENABLE_FADE_COLOR == 1
- pixelColor.rgb = mix(pixelColor.rgb, fade_color.rgb, fade_color.a);
-#endif
-
- colorOut = pixelColor;
-
- //PASSTHROUGH STATEMENT
- // colorOut = texture(depthFrame, textureCoordinate);
-
- //colorOut = vec4(vec3(blurAmount), 1.0);
-
- colorOut = vec4(0.0, 0.0, 1.0, 1.0); // FINDME, KIP!!, HACK!!
-}
-
diff --git a/kraken_standard_assets_osx/Shaders/PostShader_osx.vsh b/kraken_standard_assets_osx/Shaders/PostShader_osx.vsh
deleted file mode 100755
index 600f844..0000000
--- a/kraken_standard_assets_osx/Shaders/PostShader_osx.vsh
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-uniform vec2 viewport_downsample;
-in vec4 vertex_position;
-in vec4 vertex_uv;
-
-out vec2 textureCoordinate;
-
-void main()
-{
- gl_Position = vertex_position;
- textureCoordinate = vertex_uv.xy * viewport_downsample.xy;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/ShadowShader_osx.fsh b/kraken_standard_assets_osx/Shaders/ShadowShader_osx.fsh
deleted file mode 100755
index 8c19e35..0000000
--- a/kraken_standard_assets_osx/Shaders/ShadowShader_osx.fsh
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-//in mediump vec2 texCoord;
-
-out vec4 colorOut;
-
-void main()
-{
- colorOut = vec4(1.0, 1.0, 1.0, 1.0);
-}
diff --git a/kraken_standard_assets_osx/Shaders/ShadowShader_osx.vsh b/kraken_standard_assets_osx/Shaders/ShadowShader_osx.vsh
deleted file mode 100755
index 382558f..0000000
--- a/kraken_standard_assets_osx/Shaders/ShadowShader_osx.vsh
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-#define SHADOW_BIAS 0.01
-
-
-in highp vec4 vertex_position;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- // Transform position
- /*
- position = shadow_mvp1 * vec4(vertex_position,1.0);
- */
- gl_Position = mvp_matrix * vertex_position;
- gl_Position.z += SHADOW_BIAS;
- /*
- // Pass UV co-ordinates
- texCoord = vertex_uv.st;
- */
-
-}
diff --git a/kraken_standard_assets_osx/Shaders/debug_font_osx.fsh b/kraken_standard_assets_osx/Shaders/debug_font_osx.fsh
deleted file mode 100755
index bfda860..0000000
--- a/kraken_standard_assets_osx/Shaders/debug_font_osx.fsh
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-in mediump vec2 textureCoordinate;
-
-uniform sampler2D diffuseTexture;
-
-void main()
-{
- vec4 font_color = texture(diffuseTexture, textureCoordinate);
- colorOut = vec4(font_color.r, font_color.g, font_color.b, font_color.r + 0.50);
-}
diff --git a/kraken_standard_assets_osx/Shaders/debug_font_osx.vsh b/kraken_standard_assets_osx/Shaders/debug_font_osx.vsh
deleted file mode 100755
index c6680d4..0000000
--- a/kraken_standard_assets_osx/Shaders/debug_font_osx.vsh
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out mediump vec2 textureCoordinate;
-
-in vec4 vertex_position;
-in lowp vec2 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = /*mvp_matrix * */vertex_position;
- textureCoordinate = vertex_uv;
-}
diff --git a/kraken_standard_assets_osx/Shaders/dust_particle_osx.fsh b/kraken_standard_assets_osx/Shaders/dust_particle_osx.fsh
deleted file mode 100755
index 92a36eb..0000000
--- a/kraken_standard_assets_osx/Shaders/dust_particle_osx.fsh
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// dust_particle.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-//#extension GL_EXT_shadow_samplers : require
-
-out vec4 colorOut;
-
-in mediump vec2 texCoord;
-
-in mediump vec4 shadowMapCoord1;
-uniform sampler2DShadow shadowTexture1;
-uniform mediump vec3 light_color;
-in lowp float intensity_modulate;
-
-void main() {
- colorOut = vec4(light_color, 1.0) * shadow2DProj(shadowTexture1, shadowMapCoord1) * max(1.0 - texCoord.x*texCoord.x-texCoord.y*texCoord.y, 0.0) * intensity_modulate;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/dust_particle_osx.vsh b/kraken_standard_assets_osx/Shaders/dust_particle_osx.vsh
deleted file mode 100755
index 66aee7d..0000000
--- a/kraken_standard_assets_osx/Shaders/dust_particle_osx.vsh
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// dust_particle.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in mediump vec2 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-uniform mediump vec4 viewport;
-uniform mediump float flare_size;
-in vec4 vertex_position;
-uniform highp vec3 particle_origin;
-
-uniform highp mat4 shadow_mvp1;
-out mediump vec4 shadowMapCoord1;
-
-out mediump vec2 texCoord;
-uniform highp float time_absolute;
-out lowp float intensity_modulate;
-
-void main() {
- highp vec4 offset_center = vertex_position + vec4(particle_origin, 0.0);
- offset_center.xyz += vec3(sin((time_absolute + vertex_position.x * 100.0) * 0.05), sin((time_absolute + vertex_position.y * 100.0) * 0.07), sin((time_absolute + vertex_position.z * 100.0) * 0.03)) * 0.05;
- offset_center = vec4(mod(offset_center.x + 1.0, 2.0) - 1.0, mod(offset_center.y + 1.0, 2.0) - 1.0, mod(offset_center.z + 1.0, 2.0) - 1.0, 1.0);
- highp vec4 particle_center = mvp_matrix * offset_center;
- texCoord = vertex_uv * 3.46410161513775; // 3.46410161513775 = 2 * sqrt(3); 1 / (2 * sqrt(3)) is the radius of a circle encompased by a equilateral triangle with a side length of 1.
- gl_Position = particle_center + vec4(vertex_uv.x * viewport.w / viewport.z * 2.0 - 1.0, vertex_uv.y * 2.0 - 1.0, 0.0, 0.0) * flare_size;
-
- shadowMapCoord1 = shadow_mvp1 * offset_center;
-
- intensity_modulate = sin(time_absolute + mod(vertex_position.x * 100.0, 6.28318530717959)) * 0.5 + 0.5;
-}
diff --git a/kraken_standard_assets_osx/Shaders/flare_osx.fsh b/kraken_standard_assets_osx/Shaders/flare_osx.fsh
deleted file mode 100755
index 0d2831c..0000000
--- a/kraken_standard_assets_osx/Shaders/flare_osx.fsh
+++ /dev/null
@@ -1,40 +0,0 @@
-//
-// flare.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-in vec2 texCoord;
-uniform sampler2D diffuseTexture;
-uniform float material_alpha;
-
-void main() {
- colorOut = vec4(vec3(texture(diffuseTexture, texCoord)), 1.0) * material_alpha;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/flare_osx.vsh b/kraken_standard_assets_osx/Shaders/flare_osx.vsh
deleted file mode 100755
index d168d5c..0000000
--- a/kraken_standard_assets_osx/Shaders/flare_osx.vsh
+++ /dev/null
@@ -1,42 +0,0 @@
-//
-// flare.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in vec2 vertex_uv;
-uniform mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-uniform vec4 viewport;
-uniform float flare_size;
-
-out vec2 texCoord;
-
-void main() {
- texCoord = vertex_uv;
- gl_Position = mvp_matrix * vec4(0.0, 0.0, 0.0, 1.0) + vec4(vertex_uv.x * viewport.w / viewport.z * 2.0 - 1.0, vertex_uv.y * 2.0 - 1.0, 0.0, 0.0) * flare_size;
-}
diff --git a/kraken_standard_assets_osx/Shaders/light_directional_osx.fsh b/kraken_standard_assets_osx/Shaders/light_directional_osx.fsh
deleted file mode 100755
index 77c8a6f..0000000
--- a/kraken_standard_assets_osx/Shaders/light_directional_osx.fsh
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-uniform sampler2D gbuffer_frame;
-uniform sampler2D gbuffer_depth;
-
-uniform mediump vec3 light_direction_view_space; // Must be normalized and converted to view space before entering shader
-uniform lowp vec3 light_color;
-uniform highp float light_intensity;
-uniform mediump vec4 viewport;
-
-void main()
-{
- lowp vec2 gbuffer_uv = vec2(gl_FragCoord.xy / viewport.zw); // FINDME, TODO - Dependent Texture Read adding latency, due to calculation of texture UV within fragment -- move to vertex shader?
- lowp vec4 gbuffer_sample = texture(gbuffer_frame, gbuffer_uv);
-
- mediump vec3 gbuffer_normal = normalize(2.0 * gbuffer_sample.rgb - 1.0);
- mediump float gbuffer_specular_exponent = gbuffer_sample.a * 100.0;
-
- mediump vec3 view_space_vertex_position = vec3(
- ((2.0 * gl_FragCoord.xy) - (2.0 * viewport.xy)) / (viewport.zw) - 1.0,
- (2.0 * -texture(gbuffer_depth, gbuffer_uv).r - gl_DepthRange.near - gl_DepthRange.far) / (gl_DepthRange.far - gl_DepthRange.near)
- );
-
- //mediump float lamberFactor = max(0.0,dot(light_direction_view_space, gbuffer_normal)) * 0.2;
- mediump float lamberFactor = dot(light_direction_view_space, gbuffer_normal) * 0.2;
-
- mediump float specularFactor = 0.0;
-
- mediump vec3 halfVec = normalize((normalize(- view_space_vertex_position) + light_direction_view_space)); // Normalizing anyways, no need to divide by 2
- specularFactor = pow(dot(halfVec,gbuffer_normal), gbuffer_specular_exponent);
-
-
- colorOut = vec4(light_color * lamberFactor, specularFactor) * light_intensity;
-}
diff --git a/kraken_standard_assets_osx/Shaders/light_directional_osx.vsh b/kraken_standard_assets_osx/Shaders/light_directional_osx.vsh
deleted file mode 100755
index d99548a..0000000
--- a/kraken_standard_assets_osx/Shaders/light_directional_osx.vsh
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in vec4 vertex_position;
-
-void main()
-{
- gl_Position = vertex_position;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/light_point_inside_osx.fsh b/kraken_standard_assets_osx/Shaders/light_point_inside_osx.fsh
deleted file mode 100755
index 07f032d..0000000
--- a/kraken_standard_assets_osx/Shaders/light_point_inside_osx.fsh
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-uniform sampler2D gbuffer_frame;
-uniform sampler2D gbuffer_depth;
-
-uniform lowp vec3 light_color;
-uniform highp float light_intensity;
-uniform highp float light_decay_start;
-uniform highp float light_cutoff;
-uniform mediump vec4 viewport;
-
-uniform highp mat4 inv_projection_matrix;
-
-uniform highp vec3 view_space_model_origin;
-
-void main()
-{
-
- lowp vec2 gbuffer_uv = vec2(gl_FragCoord.xy / viewport.zw); // FINDME, TODO - Dependent Texture Read adding latency, due to calculation of texture UV within fragment -- move to vertex shader?
- lowp vec4 gbuffer_sample = texture(gbuffer_frame, gbuffer_uv);
-
- mediump vec3 gbuffer_normal = normalize(2.0 * gbuffer_sample.rgb - 1.0);
- mediump float gbuffer_specular_exponent = gbuffer_sample.a * 100.0;
-
- mediump vec4 clip_space_vertex_position = vec4(
- gl_FragCoord.xy / viewport.zw * 2.0 - 1.0,
- texture(gbuffer_depth, gbuffer_uv).r * 2.0 - 1.0,
- 1.0
- );
-
-
- mediump vec4 view_space_vertex_position = inv_projection_matrix * clip_space_vertex_position;
- view_space_vertex_position.xyz /= view_space_vertex_position.w;
-
- mediump float light_distance = max(0.0, distance(view_space_model_origin.xyz, view_space_vertex_position.xyz) - light_decay_start);
- mediump float light_attenuation = (light_intensity / ((light_distance + 1.0) * (light_distance + 1.0)) - light_cutoff) / (1.0 - light_cutoff);
- mediump vec3 light_vec = normalize(view_space_model_origin.xyz - view_space_vertex_position.xyz);
- mediump float lamberFactor = dot(light_vec, gbuffer_normal) * 0.2;
-
- mediump float specularFactor = 0.0;
- //if(gbuffer_specular_exponent > 0.0) {
- mediump vec3 halfVec = normalize((normalize(- view_space_vertex_position.xyz) + light_vec));
- specularFactor = pow(dot(halfVec,gbuffer_normal), gbuffer_specular_exponent);
- //}
-
- colorOut = vec4(light_color * lamberFactor, specularFactor) * light_attenuation;
-}
diff --git a/kraken_standard_assets_osx/Shaders/light_point_inside_osx.vsh b/kraken_standard_assets_osx/Shaders/light_point_inside_osx.vsh
deleted file mode 100755
index d99548a..0000000
--- a/kraken_standard_assets_osx/Shaders/light_point_inside_osx.vsh
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in vec4 vertex_position;
-
-void main()
-{
- gl_Position = vertex_position;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/light_point_osx.fsh b/kraken_standard_assets_osx/Shaders/light_point_osx.fsh
deleted file mode 100755
index 2921cf1..0000000
--- a/kraken_standard_assets_osx/Shaders/light_point_osx.fsh
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-uniform sampler2D gbuffer_frame;
-uniform sampler2D gbuffer_depth;
-
-uniform lowp vec3 light_color;
-uniform highp float light_intensity;
-uniform highp float light_decay_start;
-uniform highp float light_cutoff;
-uniform mediump vec4 viewport;
-
-uniform highp mat4 inv_projection_matrix;
-
-uniform highp vec3 view_space_model_origin; // For point lights, this is the position of the light
-
-void main()
-{
-
- lowp vec2 gbuffer_uv = vec2(gl_FragCoord.xy / viewport.zw); // FINDME, TODO - Dependent Texture Read adding latency, due to calculation of texture UV within fragment -- move to vertex shader?
- lowp vec4 gbuffer_sample = texture(gbuffer_frame, gbuffer_uv);
-
- mediump vec3 gbuffer_normal = normalize(2.0 * gbuffer_sample.rgb - 1.0);
- mediump float gbuffer_specular_exponent = gbuffer_sample.a * 100.0;
-
- mediump vec4 clip_space_vertex_position = vec4(
- gl_FragCoord.xy / viewport.zw * 2.0 - 1.0,
- texture(gbuffer_depth, gbuffer_uv).r * 2.0 - 1.0,
- 1.0
- );
-
-
- mediump vec4 view_space_vertex_position = inv_projection_matrix * clip_space_vertex_position;
- view_space_vertex_position.xyz /= view_space_vertex_position.w;
-
- mediump float light_distance = max(0.0, distance(view_space_model_origin.xyz, view_space_vertex_position.xyz) - light_decay_start);
- mediump float light_attenuation = (light_intensity / ((light_distance + 1.0) * (light_distance + 1.0)) - light_cutoff) / (1.0 - light_cutoff);
- mediump vec3 light_vec = normalize(view_space_model_origin.xyz - view_space_vertex_position.xyz);
- mediump float lamberFactor = dot(light_vec, gbuffer_normal) * 0.2;
-
- mediump float specularFactor = 0.0;
- //if(gbuffer_specular_exponent > 0.0) {
- mediump vec3 halfVec = normalize((normalize(- view_space_vertex_position.xyz) + light_vec));
- specularFactor = pow(dot(halfVec,gbuffer_normal), gbuffer_specular_exponent);
- //}
-
- colorOut = vec4(light_color * lamberFactor, specularFactor) * light_attenuation;
-}
diff --git a/kraken_standard_assets_osx/Shaders/light_point_osx.vsh b/kraken_standard_assets_osx/Shaders/light_point_osx.vsh
deleted file mode 100755
index 84c6687..0000000
--- a/kraken_standard_assets_osx/Shaders/light_point_osx.vsh
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in vec4 vertex_position;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = mvp_matrix * vertex_position;
- gl_Position.z = max(gl_Position.z / gl_Position.w, 0.00) * gl_Position.w;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/occlusion_test_osx.fsh b/kraken_standard_assets_osx/Shaders/occlusion_test_osx.fsh
deleted file mode 100755
index 7e484ab..0000000
--- a/kraken_standard_assets_osx/Shaders/occlusion_test_osx.fsh
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// flare.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-void main() {
- //colorOut = vec4(0.00, 0.00, 0.00, 0.00);
- colorOut = vec4(0.00, 0.00, 0.00, 0.00);
-}
diff --git a/kraken_standard_assets_osx/Shaders/occlusion_test_osx.vsh b/kraken_standard_assets_osx/Shaders/occlusion_test_osx.vsh
deleted file mode 100755
index f095553..0000000
--- a/kraken_standard_assets_osx/Shaders/occlusion_test_osx.vsh
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in vec4 vertex_position;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = mvp_matrix * vertex_position;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/simple_blit_osx.fsh b/kraken_standard_assets_osx/Shaders/simple_blit_osx.fsh
deleted file mode 100755
index f91ab2a..0000000
--- a/kraken_standard_assets_osx/Shaders/simple_blit_osx.fsh
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-in mediump vec2 textureCoordinate;
-
-uniform sampler2D diffuseTexture;
-
-void main()
-{
- colorOut = texture(diffuseTexture, textureCoordinate);
-}
diff --git a/kraken_standard_assets_osx/Shaders/simple_blit_osx.vsh b/kraken_standard_assets_osx/Shaders/simple_blit_osx.vsh
deleted file mode 100755
index ca983bc..0000000
--- a/kraken_standard_assets_osx/Shaders/simple_blit_osx.vsh
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out mediump vec2 textureCoordinate;
-
-in vec4 vertex_position;
-in lowp vec4 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = mvp_matrix * vertex_position;
- textureCoordinate = vertex_uv.xy;
-}
diff --git a/kraken_standard_assets_osx/Shaders/sky_box_osx.fsh b/kraken_standard_assets_osx/Shaders/sky_box_osx.fsh
deleted file mode 100755
index 0876d09..0000000
--- a/kraken_standard_assets_osx/Shaders/sky_box_osx.fsh
+++ /dev/null
@@ -1,40 +0,0 @@
-//
-// sky_box.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-uniform samplerCube diffuseTexture;
-
-in mediump vec3 texCoord;
-
-void main() {
- colorOut = textureCube(diffuseTexture, normalize(texCoord));
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/sky_box_osx.vsh b/kraken_standard_assets_osx/Shaders/sky_box_osx.vsh
deleted file mode 100755
index c6b6207..0000000
--- a/kraken_standard_assets_osx/Shaders/sky_box_osx.vsh
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// sky_box.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-//
-
-in vec4 vertex_position;
-
-out mediump vec3 texCoord;
-uniform highp mat4 inv_mvp_matrix_no_translate; // Inverse of the model-view-projection matrix, without view translation component
-uniform mediump vec4 viewport;
-
-void main()
-{
- gl_Position = vec4(vertex_position.xy, 1.0, 1.0);
-
- vec4 t = inv_mvp_matrix_no_translate * vec4(vertex_position.xy, 1.0, 1.0);
- t *= 1.0 / t.w;
- texCoord = vec3(t);
-}
diff --git a/kraken_standard_assets_osx/Shaders/sprite_osx.fsh b/kraken_standard_assets_osx/Shaders/sprite_osx.fsh
deleted file mode 100755
index feb61b3..0000000
--- a/kraken_standard_assets_osx/Shaders/sprite_osx.fsh
+++ /dev/null
@@ -1,40 +0,0 @@
-//
-// sprite.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-in mediump vec2 texCoord;
-uniform sampler2D diffuseTexture;
-uniform lowp float material_alpha;
-
-void main() {
- colorOut = vec4(vec3(texture(diffuseTexture, texCoord)), 1.0) * material_alpha;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/sprite_osx.vsh b/kraken_standard_assets_osx/Shaders/sprite_osx.vsh
deleted file mode 100755
index b367a1c..0000000
--- a/kraken_standard_assets_osx/Shaders/sprite_osx.vsh
+++ /dev/null
@@ -1,41 +0,0 @@
-//
-// sprite.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in mediump vec2 vertex_uv;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-uniform mediump vec4 viewport;
-
-out mediump vec2 texCoord;
-
-void main() {
- texCoord = vertex_uv;
- gl_Position = mvp_matrix * vec4(vertex_uv.x * 2.0 - 1.0, vertex_uv.y * 2.0 - 1.0, 0.0, 1.0);
-}
diff --git a/kraken_standard_assets_osx/Shaders/visualize_overlay_osx.fsh b/kraken_standard_assets_osx/Shaders/visualize_overlay_osx.fsh
deleted file mode 100755
index de29a57..0000000
--- a/kraken_standard_assets_osx/Shaders/visualize_overlay_osx.fsh
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// visualize_overlay.fsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-void main() {
- colorOut = vec4(0.0, 0.05, 0.05, 0.0);
-}
-
diff --git a/kraken_standard_assets_osx/Shaders/visualize_overlay_osx.vsh b/kraken_standard_assets_osx/Shaders/visualize_overlay_osx.vsh
deleted file mode 100755
index b508cd3..0000000
--- a/kraken_standard_assets_osx/Shaders/visualize_overlay_osx.vsh
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// visualize_overlay.vsh
-// KREngine
-//
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in vec4 vertex_position;
-uniform highp mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
-
-void main()
-{
- gl_Position = mvp_matrix * vertex_position;
-}
\ No newline at end of file
diff --git a/kraken_standard_assets_osx/Shaders/volumetric_fog_downsampled_osx.fsh b/kraken_standard_assets_osx/Shaders/volumetric_fog_downsampled_osx.fsh
deleted file mode 100755
index ac905b1..0000000
--- a/kraken_standard_assets_osx/Shaders/volumetric_fog_downsampled_osx.fsh
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-in mediump vec4 shadowMapCoord1;
-uniform sampler2DShadow shadowTexture1;
-uniform lowp sampler2D depthFrame;
-uniform mediump vec4 viewport;
-uniform mediump vec3 light_color;
-
-void main()
-{
- if(gl_FragCoord.z > texture(depthFrame, vec2(gl_FragCoord.xy / viewport.zw)).r) discard;
-
- colorOut = vec4(light_color, 1.0) * shadow2DProj(shadowTexture1, shadowMapCoord1);
-}
diff --git a/kraken_standard_assets_osx/Shaders/volumetric_fog_downsampled_osx.vsh b/kraken_standard_assets_osx/Shaders/volumetric_fog_downsampled_osx.vsh
deleted file mode 100755
index 976996a..0000000
--- a/kraken_standard_assets_osx/Shaders/volumetric_fog_downsampled_osx.vsh
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in highp vec4 vertex_position;
-uniform highp mat4 inv_mvp_matrix;
-
-uniform highp vec2 slice_depth_scale; // First component is the depth for the nearest plane, in view space. Second component is the distance between planes, in view space
-
-uniform highp mat4 shadow_mvp1;
-out mediump vec4 shadowMapCoord1;
-
-uniform highp mat4 projection_matrix;
-
-void main()
-{
- highp vec4 d = projection_matrix * vec4(0.0, 0.0, slice_depth_scale.x + vertex_position.z * slice_depth_scale.y, 1.0);
- d /= d.w;
- gl_Position = vec4(vertex_position.x, vertex_position.y, d.z, 1.0);
-
-
- shadowMapCoord1 = inv_mvp_matrix * gl_Position;
- shadowMapCoord1 /= shadowMapCoord1.w;
- shadowMapCoord1.w = 1.0;
- shadowMapCoord1 = shadow_mvp1 * shadowMapCoord1;
-
-}
diff --git a/kraken_standard_assets_osx/Shaders/volumetric_fog_osx.fsh b/kraken_standard_assets_osx/Shaders/volumetric_fog_osx.fsh
deleted file mode 100755
index 362b452..0000000
--- a/kraken_standard_assets_osx/Shaders/volumetric_fog_osx.fsh
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-out vec4 colorOut;
-
-in mediump vec4 shadowMapCoord1;
-uniform sampler2DShadow shadowTexture1;
-uniform mediump vec3 light_color;
-
-void main()
-{
- colorOut = vec4(light_color, 1.0) * shadow2DProj(shadowTexture1, shadowMapCoord1);
-}
diff --git a/kraken_standard_assets_osx/Shaders/volumetric_fog_osx.vsh b/kraken_standard_assets_osx/Shaders/volumetric_fog_osx.vsh
deleted file mode 100755
index 4d8183d..0000000
--- a/kraken_standard_assets_osx/Shaders/volumetric_fog_osx.vsh
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2012 Kearwood Gilbert. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without modification, are
-// permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright notice, this list of
-// conditions and the following disclaimer.
-//
-// 2. Redistributions in binary form must reproduce the above copyright notice, this list
-// of conditions and the following disclaimer in the documentation and/or other materials
-// provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY KEARWOOD GILBERT ''AS IS'' AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KEARWOOD GILBERT OR
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// The views and conclusions contained in the software and documentation are those of the
-// authors and should not be interpreted as representing official policies, either expressed
-// or implied, of Kearwood Gilbert.
-//
-
-in highp vec4 vertex_position;
-uniform highp mat4 inv_mvp_matrix;
-
-uniform highp vec2 slice_depth_scale; // First component is the depth for the nearest plane, in view space. Second component is the distance between planes, in view space
-
-uniform highp mat4 shadow_mvp1;
-out mediump vec4 shadowMapCoord1;
-
-uniform highp mat4 projection_matrix;
-
-
-void main()
-{
- highp vec4 d = projection_matrix * vec4(0.0, 0.0, slice_depth_scale.x + vertex_position.z * slice_depth_scale.y, 1.0);
- d /= d.w;
- gl_Position = vec4(vertex_position.x, vertex_position.y, d.z, 1.0);
-
-
- shadowMapCoord1 = inv_mvp_matrix * gl_Position;
- shadowMapCoord1 /= shadowMapCoord1.w;
- shadowMapCoord1.w = 1.0;
- shadowMapCoord1 = shadow_mvp1 * shadowMapCoord1;
-
-}
diff --git a/kraken_standard_assets_tvos/Resources-Info.plist b/kraken_standard_assets_tvos/Resources-Info.plist
deleted file mode 100755
index c71a54e..0000000
--- a/kraken_standard_assets_tvos/Resources-Info.plist
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- English
- CFBundleExecutable
- ${EXECUTABLE_NAME}
- CFBundleIconFile
-
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- ${PRODUCT_NAME}
- CFBundlePackageType
- BNDL
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1
- CFPlugInDynamicRegisterFunction
-
- CFPlugInDynamicRegistration
- NO
- CFPlugInFactories
-
- 00000000-0000-0000-0000-000000000000
- MyFactoryFunction
-
- CFPlugInTypes
-
- 00000000-0000-0000-0000-000000000000
-
- 00000000-0000-0000-0000-000000000000
-
-
- CFPlugInUnloadFunction
-
- NSHumanReadableCopyright
- Copyright © 2013 Kearwood Software. All rights reserved.
-
-
diff --git a/standard_assets/shaders/frag.spv b/standard_assets/shaders/frag.spv
deleted file mode 100644
index e41552f..0000000
Binary files a/standard_assets/shaders/frag.spv and /dev/null differ