32fb5444e7
Add support for bayonetta/astral chain dat. Add support for darc archives. Support previewing window panes for bflyt (1 frame atm with around kind) Add bflan reading. Saving needs more testing and will be enabled soon. Bflyt editor will keep the editor open within an archive when saved. A custom dialog will be added soon to customize saving parameters. Bflims will be loaded if in the same folder as the bflyt when opened.
38 lines
949 B
GLSL
38 lines
949 B
GLSL
uniform vec4 blackColor;
|
|
uniform vec4 whiteColor;
|
|
uniform int hasTexture0;
|
|
uniform int debugShading;
|
|
uniform int numTextureMaps;
|
|
|
|
uniform sampler2D textures0;
|
|
uniform sampler2D uvTestPattern;
|
|
|
|
void main()
|
|
{
|
|
vec4 textureMap0 = vec4(1);
|
|
vec4 textureMap1 = vec4(1);
|
|
vec4 textureMap2 = vec4(1);
|
|
|
|
if (numTextureMaps > 0)
|
|
{
|
|
if (hasTexture0 == 1)
|
|
textureMap0 = texture2D(textures0, gl_TexCoord[0].st);
|
|
}
|
|
|
|
if (debugShading == 0)
|
|
{
|
|
vec4 colorBlend = textureMap0 * whiteColor;
|
|
vec3 blackBlend = (vec3(1) - textureMap0.rgb) + blackColor.rgb;
|
|
gl_FragColor = gl_Color * colorBlend;
|
|
}
|
|
else if (debugShading == 5)
|
|
gl_FragColor = vec4(textureMap0.rgb, 1);
|
|
else if (debugShading == 1)
|
|
gl_FragColor = gl_Color;
|
|
else if (debugShading == 2)
|
|
gl_FragColor = whiteColor;
|
|
else if (debugShading == 3)
|
|
gl_FragColor = blackColor;
|
|
else if (debugShading == 4)
|
|
gl_FragColor = texture2D(uvTestPattern, gl_TexCoord[0].st);
|
|
} |