From 5a7cefd39d02b971aa9033a3d1e0c94e6a87036f Mon Sep 17 00:00:00 2001 From: Shylie Date: Sat, 8 Apr 2023 18:19:02 -0400 Subject: [PATCH] fix improper fragment color mode --- source/main.cpp | 2 +- source/vshader.v.pica | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index 2886a4f..0e8b3d0 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -143,7 +143,7 @@ static void sceneInit() C3D_TexEnv* env = C3D_GetTexEnv(0); C3D_TexEnvInit(env); C3D_TexEnvSrc(env, C3D_Both, GPU_PRIMARY_COLOR); - C3D_TexEnvFunc(env, C3D_Both, GPU_ADD); + C3D_TexEnvFunc(env, C3D_Both, GPU_REPLACE); C3D_FVec* spheres = C3D_FVUnifWritePtr(GPU_VERTEX_SHADER, spheresUniformLocation, 3); spheres[0] = FVec4_New(0.0f, -100.5f, -1.0f, 100.0f); diff --git a/source/vshader.v.pica b/source/vshader.v.pica index db46fef..989078a 100644 --- a/source/vshader.v.pica +++ b/source/vshader.v.pica @@ -1,5 +1,5 @@ .constf myconst(0.0, 1.0, 0.01, 1000.0) -.constf myconst2(0.25, 0.0, 0.0, 0.0) +.constf myconst2(0.5, 0.0, 0.0, 0.0) .alias zeros myconst.xxxx .alias ones myconst.yyyy .alias near myconst.zzzz