Fix texture channel for psvita
This commit is contained in:
parent
2d701d414d
commit
c30df0b284
@ -21,7 +21,8 @@ namespace AxibugEmuOnline.Client
|
||||
{
|
||||
if (wrapTex == null)
|
||||
{
|
||||
wrapTex = new Texture2D(272, 240, TextureFormat.BGRA32, false);
|
||||
//wrapTex = new Texture2D(272, 240, TextureFormat.BGRA32, false);
|
||||
wrapTex = new Texture2D(272, 240, TextureFormat.RGBA32, false);
|
||||
wrapTex.filterMode = FilterMode.Point;
|
||||
wrapTexBuffer = screenData;
|
||||
|
||||
@ -36,7 +37,8 @@ namespace AxibugEmuOnline.Client
|
||||
TexBufferSize = wrapTexBuffer.Length * 4;
|
||||
|
||||
var palRaw = PaletteDefine.m_cnPalette[0];
|
||||
pPal = new Texture2D(palRaw.Length, 1, TextureFormat.BGRA32, 1, true);
|
||||
//pPal = new Texture2D(palRaw.Length, 1, TextureFormat.BGRA32, 1, true);
|
||||
pPal = new Texture2D(palRaw.Length, 1, TextureFormat.RGBA32, false);
|
||||
pPal.filterMode = FilterMode.Point;
|
||||
for (int i = 0; i < palRaw.Length; i++)
|
||||
{
|
||||
|
@ -109,7 +109,8 @@
|
||||
|
||||
half4 color = tex2D(_MainTex,mapUV);
|
||||
|
||||
float rawIndex = color.b;
|
||||
//float rawIndex = color.b;
|
||||
float rawIndex = color.r;
|
||||
|
||||
color = tex2D(_PalTex,float2(rawIndex,0.5));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user