Introduce chkgfx #3

Merged
kornerr merged 57 commits from rfix into master 2026-10-22 03:17:23 +00:00
5 changed files with 8 additions and 8 deletions
Showing only changes of commit 0010ef00a6 - Show all commits

No files matched your search

@@ -1,4 +1,4 @@
let RAYLIB_SHADER_MAIN_FS = """ let RENDER_SHADER_MAIN_FS = """
#version 150 #version 150
in vec3 vWorldPos; in vec3 vWorldPos;
@@ -93,7 +93,7 @@ void main()
} }
""" """
let RAYLIB_SHADER_MAIN_VS = """ let RENDER_SHADER_MAIN_VS = """
#version 150 #version 150
in vec3 vertexPosition; in vec3 vertexPosition;
in vec2 vertexTexCoord; in vec2 vertexTexCoord;
@@ -119,7 +119,7 @@ void main()
} }
""" """
let RAYLIB_SHADER_SHADOW_FS = """ let RENDER_SHADER_SHADOW_FS = """
#version 150 #version 150
out vec4 finalColor; out vec4 finalColor;
void main() void main()
@@ -128,7 +128,7 @@ void main()
} }
""" """
let RAYLIB_SHADER_SHADOW_VS = """ let RENDER_SHADER_SHADOW_VS = """
#version 150 #version 150
in vec3 vertexPosition; in vec3 vertexPosition;
uniform mat4 mvp; uniform mat4 mvp;
+2 -2
View File
@@ -58,8 +58,8 @@ final class RaylibGLNSView: NSOpenGLView {
updatePixelSize() updatePixelSize()
sr_init(pixelWidth, pixelHeight, sr_init(pixelWidth, pixelHeight,
RAYLIB_SHADER_MAIN_VS, RAYLIB_SHADER_MAIN_FS, RENDER_SHADER_MAIN_VS, RENDER_SHADER_MAIN_FS,
RAYLIB_SHADER_SHADOW_VS, RAYLIB_SHADER_SHADOW_FS) RENDER_SHADER_SHADOW_VS, RENDER_SHADER_SHADOW_FS)
loadModel() loadModel()
startTime = CACurrentMediaTime() startTime = CACurrentMediaTime()
ready = true ready = true
+1 -1
View File
@@ -6,7 +6,7 @@ extern "C" {
#endif #endif
// Initialise the OpenGL-backed raylib scene (no raylib window is created). // Initialise the OpenGL-backed raylib scene (no raylib window is created).
// The four shader sources come from raylibConstShader.swift. // The four shader sources come from renderConstShader.swift.
void sr_init(int width, int height, void sr_init(int width, int height,
const char *main_vs, const char *main_fs, const char *main_vs, const char *main_fs,
const char *shadow_vs, const char *shadow_fs); const char *shadow_vs, const char *shadow_fs);
@@ -1 +0,0 @@
../../../../components/raylib/raylibConstShader.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/render/renderConstShader.swift