-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uh some of these didn't get included last time.
- Loading branch information
1 parent
bb3fbbd
commit 07889bf
Showing
206 changed files
with
4,812 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.7 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.37 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+56.8 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+51.8 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.9 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+98.6 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.3 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93.5 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+95.1 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72.5 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.6 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.6 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_31.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+510 Bytes
FinModelUtility/Formats/Mod/Mod Tests/goldens/cave/output/cave_8.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+854 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/chappy.glb
Binary file not shown.
Binary file added
BIN
+1.25 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/chappy_0.png
Oops, something went wrong.
Binary file added
BIN
+465 Bytes
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/chappy_1.png
Oops, something went wrong.
Binary file added
BIN
+1.19 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/chappy_2.png
Oops, something went wrong.
Binary file added
BIN
+1.38 KB
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/chappy_3.png
Oops, something went wrong.
Binary file added
BIN
+719 Bytes
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/chappy_4.png
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/material 0.fragment.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# version 400 | ||
|
||
|
||
struct Light { | ||
bool enabled; | ||
vec3 position; | ||
vec3 normal; | ||
vec4 color; | ||
}; | ||
|
||
uniform Light lights[8]; | ||
uniform vec3 ambientLightColor; | ||
|
||
uniform sampler2D diffuseTexture; | ||
uniform float useLighting; | ||
|
||
out vec4 fragColor; | ||
|
||
in vec4 vertexColor0; | ||
in vec3 vertexNormal; | ||
in vec2 uv0; | ||
|
||
vec3 getDiffuseLightColor(Light light, vec3 vertexNormal) { | ||
vec3 diffuseLightNormal = normalize(light.normal); | ||
float diffuseLightAmount = max(-dot(vertexNormal, diffuseLightNormal), 0); | ||
float lightAmount = min(diffuseLightAmount, 1); | ||
return lightAmount * light.color.rgb; | ||
} | ||
|
||
vec3 getMergedDiffuseLightColor(vec3 vertexNormal) { | ||
int enabledLightCount; | ||
|
||
vec3 mergedLightColor; | ||
for (int i = 0; i < 8; ++i) { | ||
if (lights[i].enabled) { | ||
enabledLightCount++; | ||
mergedLightColor += getDiffuseLightColor(lights[i], vertexNormal); | ||
} | ||
} | ||
|
||
return enabledLightCount == 0 ? vec3(1) : mergedLightColor / enabledLightCount; | ||
} | ||
|
||
vec3 applyLightingColor(vec3 diffuseColor, vec3 vertexNormal) { | ||
vec3 mergedDiffuseLightColor = getMergedDiffuseLightColor(vertexNormal); | ||
|
||
vec3 mergedLightColor = min(ambientLightColor + mergedDiffuseLightColor, 1); | ||
return diffuseColor * mergedLightColor; | ||
} | ||
|
||
void main() { | ||
vec4 diffuseColor = texture(diffuseTexture, uv0); | ||
|
||
fragColor = diffuseColor * vertexColor0; | ||
fragColor.rgb = | ||
mix(fragColor.rgb, applyLightingColor(fragColor.rgb, vertexNormal), useLighting); | ||
|
||
if (fragColor.a < .95) { | ||
discard; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/material 0.vertex.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
# version 330 | ||
|
||
uniform mat4 modelViewMatrix; | ||
uniform mat4 projectionMatrix; | ||
|
||
layout(location = 0) in vec3 in_Position; | ||
layout(location = 1) in vec3 in_Normal; | ||
layout(location = 2) in vec4 in_Tangent; | ||
layout(location = 3) in vec2 in_Uvs[4]; | ||
layout(location = 7) in vec4 in_Colors[2]; | ||
|
||
out vec3 vertexNormal; | ||
out vec3 tangent; | ||
out vec3 binormal; | ||
out vec2 normalUv; | ||
out vec2 uv0; | ||
out vec2 uv1; | ||
out vec2 uv2; | ||
out vec2 uv3; | ||
out vec4 vertexColor0; | ||
out vec4 vertexColor1; | ||
void main() { | ||
gl_Position = projectionMatrix * modelViewMatrix * vec4(in_Position, 1); | ||
vertexNormal = normalize(modelViewMatrix * vec4(in_Normal, 0)).xyz; | ||
tangent = normalize(modelViewMatrix * vec4(in_Tangent)).xyz; | ||
binormal = cross(vertexNormal, tangent); | ||
normalUv = normalize(projectionMatrix * modelViewMatrix * vec4(in_Normal, 0)).xy; | ||
uv0 = in_Uvs[0]; | ||
uv1 = in_Uvs[1]; | ||
uv2 = in_Uvs[2]; | ||
uv3 = in_Uvs[3]; | ||
vertexColor0 = in_Colors[0]; | ||
vertexColor1 = in_Colors[1]; | ||
} |
61 changes: 61 additions & 0 deletions
61
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/material 1.fragment.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# version 400 | ||
|
||
|
||
struct Light { | ||
bool enabled; | ||
vec3 position; | ||
vec3 normal; | ||
vec4 color; | ||
}; | ||
|
||
uniform Light lights[8]; | ||
uniform vec3 ambientLightColor; | ||
|
||
uniform sampler2D diffuseTexture; | ||
uniform float useLighting; | ||
|
||
out vec4 fragColor; | ||
|
||
in vec4 vertexColor0; | ||
in vec3 vertexNormal; | ||
in vec2 uv0; | ||
|
||
vec3 getDiffuseLightColor(Light light, vec3 vertexNormal) { | ||
vec3 diffuseLightNormal = normalize(light.normal); | ||
float diffuseLightAmount = max(-dot(vertexNormal, diffuseLightNormal), 0); | ||
float lightAmount = min(diffuseLightAmount, 1); | ||
return lightAmount * light.color.rgb; | ||
} | ||
|
||
vec3 getMergedDiffuseLightColor(vec3 vertexNormal) { | ||
int enabledLightCount; | ||
|
||
vec3 mergedLightColor; | ||
for (int i = 0; i < 8; ++i) { | ||
if (lights[i].enabled) { | ||
enabledLightCount++; | ||
mergedLightColor += getDiffuseLightColor(lights[i], vertexNormal); | ||
} | ||
} | ||
|
||
return enabledLightCount == 0 ? vec3(1) : mergedLightColor / enabledLightCount; | ||
} | ||
|
||
vec3 applyLightingColor(vec3 diffuseColor, vec3 vertexNormal) { | ||
vec3 mergedDiffuseLightColor = getMergedDiffuseLightColor(vertexNormal); | ||
|
||
vec3 mergedLightColor = min(ambientLightColor + mergedDiffuseLightColor, 1); | ||
return diffuseColor * mergedLightColor; | ||
} | ||
|
||
void main() { | ||
vec4 diffuseColor = texture(diffuseTexture, uv0); | ||
|
||
fragColor = diffuseColor * vertexColor0; | ||
fragColor.rgb = | ||
mix(fragColor.rgb, applyLightingColor(fragColor.rgb, vertexNormal), useLighting); | ||
|
||
if (fragColor.a < .95) { | ||
discard; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/material 1.vertex.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
# version 330 | ||
|
||
uniform mat4 modelViewMatrix; | ||
uniform mat4 projectionMatrix; | ||
|
||
layout(location = 0) in vec3 in_Position; | ||
layout(location = 1) in vec3 in_Normal; | ||
layout(location = 2) in vec4 in_Tangent; | ||
layout(location = 3) in vec2 in_Uvs[4]; | ||
layout(location = 7) in vec4 in_Colors[2]; | ||
|
||
out vec3 vertexNormal; | ||
out vec3 tangent; | ||
out vec3 binormal; | ||
out vec2 normalUv; | ||
out vec2 uv0; | ||
out vec2 uv1; | ||
out vec2 uv2; | ||
out vec2 uv3; | ||
out vec4 vertexColor0; | ||
out vec4 vertexColor1; | ||
void main() { | ||
gl_Position = projectionMatrix * modelViewMatrix * vec4(in_Position, 1); | ||
vertexNormal = normalize(modelViewMatrix * vec4(in_Normal, 0)).xyz; | ||
tangent = normalize(modelViewMatrix * vec4(in_Tangent)).xyz; | ||
binormal = cross(vertexNormal, tangent); | ||
normalUv = normalize(projectionMatrix * modelViewMatrix * vec4(in_Normal, 0)).xy; | ||
uv0 = in_Uvs[0]; | ||
uv1 = in_Uvs[1]; | ||
uv2 = in_Uvs[2]; | ||
uv3 = in_Uvs[3]; | ||
vertexColor0 = in_Colors[0]; | ||
vertexColor1 = in_Colors[1]; | ||
} |
61 changes: 61 additions & 0 deletions
61
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/material 10.fragment.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# version 400 | ||
|
||
|
||
struct Light { | ||
bool enabled; | ||
vec3 position; | ||
vec3 normal; | ||
vec4 color; | ||
}; | ||
|
||
uniform Light lights[8]; | ||
uniform vec3 ambientLightColor; | ||
|
||
uniform sampler2D diffuseTexture; | ||
uniform float useLighting; | ||
|
||
out vec4 fragColor; | ||
|
||
in vec4 vertexColor0; | ||
in vec3 vertexNormal; | ||
in vec2 uv0; | ||
|
||
vec3 getDiffuseLightColor(Light light, vec3 vertexNormal) { | ||
vec3 diffuseLightNormal = normalize(light.normal); | ||
float diffuseLightAmount = max(-dot(vertexNormal, diffuseLightNormal), 0); | ||
float lightAmount = min(diffuseLightAmount, 1); | ||
return lightAmount * light.color.rgb; | ||
} | ||
|
||
vec3 getMergedDiffuseLightColor(vec3 vertexNormal) { | ||
int enabledLightCount; | ||
|
||
vec3 mergedLightColor; | ||
for (int i = 0; i < 8; ++i) { | ||
if (lights[i].enabled) { | ||
enabledLightCount++; | ||
mergedLightColor += getDiffuseLightColor(lights[i], vertexNormal); | ||
} | ||
} | ||
|
||
return enabledLightCount == 0 ? vec3(1) : mergedLightColor / enabledLightCount; | ||
} | ||
|
||
vec3 applyLightingColor(vec3 diffuseColor, vec3 vertexNormal) { | ||
vec3 mergedDiffuseLightColor = getMergedDiffuseLightColor(vertexNormal); | ||
|
||
vec3 mergedLightColor = min(ambientLightColor + mergedDiffuseLightColor, 1); | ||
return diffuseColor * mergedLightColor; | ||
} | ||
|
||
void main() { | ||
vec4 diffuseColor = texture(diffuseTexture, uv0); | ||
|
||
fragColor = diffuseColor * vertexColor0; | ||
fragColor.rgb = | ||
mix(fragColor.rgb, applyLightingColor(fragColor.rgb, vertexNormal), useLighting); | ||
|
||
if (fragColor.a < .95) { | ||
discard; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/material 10.vertex.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
# version 330 | ||
|
||
uniform mat4 modelViewMatrix; | ||
uniform mat4 projectionMatrix; | ||
|
||
layout(location = 0) in vec3 in_Position; | ||
layout(location = 1) in vec3 in_Normal; | ||
layout(location = 2) in vec4 in_Tangent; | ||
layout(location = 3) in vec2 in_Uvs[4]; | ||
layout(location = 7) in vec4 in_Colors[2]; | ||
|
||
out vec3 vertexNormal; | ||
out vec3 tangent; | ||
out vec3 binormal; | ||
out vec2 normalUv; | ||
out vec2 uv0; | ||
out vec2 uv1; | ||
out vec2 uv2; | ||
out vec2 uv3; | ||
out vec4 vertexColor0; | ||
out vec4 vertexColor1; | ||
void main() { | ||
gl_Position = projectionMatrix * modelViewMatrix * vec4(in_Position, 1); | ||
vertexNormal = normalize(modelViewMatrix * vec4(in_Normal, 0)).xyz; | ||
tangent = normalize(modelViewMatrix * vec4(in_Tangent)).xyz; | ||
binormal = cross(vertexNormal, tangent); | ||
normalUv = normalize(projectionMatrix * modelViewMatrix * vec4(in_Normal, 0)).xy; | ||
uv0 = in_Uvs[0]; | ||
uv1 = in_Uvs[1]; | ||
uv2 = in_Uvs[2]; | ||
uv3 = in_Uvs[3]; | ||
vertexColor0 = in_Colors[0]; | ||
vertexColor1 = in_Colors[1]; | ||
} |
61 changes: 61 additions & 0 deletions
61
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/material 2.fragment.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# version 400 | ||
|
||
|
||
struct Light { | ||
bool enabled; | ||
vec3 position; | ||
vec3 normal; | ||
vec4 color; | ||
}; | ||
|
||
uniform Light lights[8]; | ||
uniform vec3 ambientLightColor; | ||
|
||
uniform sampler2D diffuseTexture; | ||
uniform float useLighting; | ||
|
||
out vec4 fragColor; | ||
|
||
in vec4 vertexColor0; | ||
in vec3 vertexNormal; | ||
in vec2 uv0; | ||
|
||
vec3 getDiffuseLightColor(Light light, vec3 vertexNormal) { | ||
vec3 diffuseLightNormal = normalize(light.normal); | ||
float diffuseLightAmount = max(-dot(vertexNormal, diffuseLightNormal), 0); | ||
float lightAmount = min(diffuseLightAmount, 1); | ||
return lightAmount * light.color.rgb; | ||
} | ||
|
||
vec3 getMergedDiffuseLightColor(vec3 vertexNormal) { | ||
int enabledLightCount; | ||
|
||
vec3 mergedLightColor; | ||
for (int i = 0; i < 8; ++i) { | ||
if (lights[i].enabled) { | ||
enabledLightCount++; | ||
mergedLightColor += getDiffuseLightColor(lights[i], vertexNormal); | ||
} | ||
} | ||
|
||
return enabledLightCount == 0 ? vec3(1) : mergedLightColor / enabledLightCount; | ||
} | ||
|
||
vec3 applyLightingColor(vec3 diffuseColor, vec3 vertexNormal) { | ||
vec3 mergedDiffuseLightColor = getMergedDiffuseLightColor(vertexNormal); | ||
|
||
vec3 mergedLightColor = min(ambientLightColor + mergedDiffuseLightColor, 1); | ||
return diffuseColor * mergedLightColor; | ||
} | ||
|
||
void main() { | ||
vec4 diffuseColor = texture(diffuseTexture, uv0); | ||
|
||
fragColor = diffuseColor * vertexColor0; | ||
fragColor.rgb = | ||
mix(fragColor.rgb, applyLightingColor(fragColor.rgb, vertexNormal), useLighting); | ||
|
||
if (fragColor.a < .95) { | ||
discard; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
FinModelUtility/Formats/Mod/Mod Tests/goldens/chappy/output/material 2.vertex.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
# version 330 | ||
|
||
uniform mat4 modelViewMatrix; | ||
uniform mat4 projectionMatrix; | ||
|
||
layout(location = 0) in vec3 in_Position; | ||
layout(location = 1) in vec3 in_Normal; | ||
layout(location = 2) in vec4 in_Tangent; | ||
layout(location = 3) in vec2 in_Uvs[4]; | ||
layout(location = 7) in vec4 in_Colors[2]; | ||
|
||
out vec3 vertexNormal; | ||
out vec3 tangent; | ||
out vec3 binormal; | ||
out vec2 normalUv; | ||
out vec2 uv0; | ||
out vec2 uv1; | ||
out vec2 uv2; | ||
out vec2 uv3; | ||
out vec4 vertexColor0; | ||
out vec4 vertexColor1; | ||
void main() { | ||
gl_Position = projectionMatrix * modelViewMatrix * vec4(in_Position, 1); | ||
vertexNormal = normalize(modelViewMatrix * vec4(in_Normal, 0)).xyz; | ||
tangent = normalize(modelViewMatrix * vec4(in_Tangent)).xyz; | ||
binormal = cross(vertexNormal, tangent); | ||
normalUv = normalize(projectionMatrix * modelViewMatrix * vec4(in_Normal, 0)).xy; | ||
uv0 = in_Uvs[0]; | ||
uv1 = in_Uvs[1]; | ||
uv2 = in_Uvs[2]; | ||
uv3 = in_Uvs[3]; | ||
vertexColor0 = in_Colors[0]; | ||
vertexColor1 = in_Colors[1]; | ||
} |
Oops, something went wrong.