forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
28
Kha/Tools/khamake/Data/psm/Texture.fcg
Normal file
28
Kha/Tools/khamake/Data/psm/Texture.fcg
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
#version 100
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D tex;
|
||||
varying vec2 texCoord;
|
||||
varying vec4 color;
|
||||
|
||||
void kore() {
|
||||
vec4 texcolor = texture2D(tex, texCoord) * color;
|
||||
texcolor.rgb *= color.a;
|
||||
gl_FragColor = texcolor;
|
||||
}
|
||||
*/
|
||||
|
||||
/*void main(float2 in v_TexCoord : TEXCOORD0, float4 out Color : COLOR, uniform sampler2D Texture0 : TEXUNIT0) {
|
||||
Color = tex2D(Texture0, v_TexCoord);
|
||||
}*/
|
||||
|
||||
void main(float2 in texCoord : TEXCOORD0, float4 in color : TEXCOORD1, float4 out gl_FragColor : COLOR, uniform sampler2D tex : TEXUNIT0) {
|
||||
float4 texcolor = tex2D(tex, texCoord) * color;
|
||||
//texcolor.rgb *= color.a;
|
||||
gl_FragColor = texcolor;
|
||||
//gl_FragColor = float4(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
31
Kha/Tools/khamake/Data/psm/Texture.vcg
Normal file
31
Kha/Tools/khamake/Data/psm/Texture.vcg
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
#version 100
|
||||
|
||||
attribute vec3 vertexPosition;
|
||||
attribute vec2 texPosition;
|
||||
attribute vec4 vertexColor;
|
||||
uniform mat4 projectionMatrix;
|
||||
varying vec2 texCoord;
|
||||
varying vec4 color;
|
||||
|
||||
void kore() {
|
||||
gl_Position = projectionMatrix * vec4(vertexPosition, 1.0);
|
||||
texCoord = texPosition;
|
||||
color = vertexColor;
|
||||
}
|
||||
*/
|
||||
|
||||
/*void main(float4 in a_Position : POSITION, float2 in a_TexCoord : TEXCOORD0, float4 out v_Position : POSITION, float2 out v_TexCoord : TEXCOORD0, uniform float4x4 WorldViewProj) {
|
||||
v_Position = mul(a_Position, WorldViewProj);
|
||||
v_TexCoord = a_TexCoord;
|
||||
}*/
|
||||
|
||||
void main(
|
||||
float3 in vertexPosition : TEXCOORD0, float2 in texPosition : TEXCOORD1, float4 in vertexColor : TEXCOORD2,
|
||||
float4 out gl_Position : POSITION, float2 out texCoord : TEXCOORD0, float4 out color : TEXCOORD1,
|
||||
uniform float4x4 projectionMatrix) {
|
||||
gl_Position = mul(transpose(projectionMatrix), float4(vertexPosition, 1.0));
|
||||
gl_Position.z = 0.5;
|
||||
texCoord = texPosition;
|
||||
color = vertexColor;
|
||||
}
|
10
Kha/Tools/khamake/Data/psm/app.xml
Normal file
10
Kha/Tools/khamake/Data/psm/app.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<application project_name="*" version="1.00" default_locale="en-US">
|
||||
<runtime_config>
|
||||
<memory managed_heap_size="32768" resource_heap_size="65536" />
|
||||
</runtime_config>
|
||||
<feature_list>
|
||||
<feature value="GamePad" />
|
||||
<feature value="Touch" />
|
||||
</feature_list>
|
||||
</application>
|
Reference in New Issue
Block a user