Introduce chkgfx #3

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

No files matched your search

+8 -8
View File
@@ -1,5 +1,5 @@
let RAYLIB_SHADER_MAIN_FS = """ let RAYLIB_SHADER_MAIN_FS = """
#version 330 #version 150
in vec3 vWorldPos; in vec3 vWorldPos;
in vec3 vNormal; in vec3 vNormal;
@@ -94,10 +94,10 @@ void main()
""" """
let RAYLIB_SHADER_MAIN_VS = """ let RAYLIB_SHADER_MAIN_VS = """
#version 330 #version 150
layout(location = 0) in vec3 vertexPosition; in vec3 vertexPosition;
layout(location = 1) in vec2 vertexTexCoord; in vec2 vertexTexCoord;
layout(location = 2) in vec3 vertexNormal; in vec3 vertexNormal;
uniform mat4 mvp; uniform mat4 mvp;
uniform mat4 matModel; uniform mat4 matModel;
@@ -120,7 +120,7 @@ void main()
""" """
let RAYLIB_SHADER_SHADOW_FS = """ let RAYLIB_SHADER_SHADOW_FS = """
#version 330 #version 150
out vec4 finalColor; out vec4 finalColor;
void main() void main()
{ {
@@ -129,8 +129,8 @@ void main()
""" """
let RAYLIB_SHADER_SHADOW_VS = """ let RAYLIB_SHADER_SHADOW_VS = """
#version 330 #version 150
layout(location = 0) in vec3 vertexPosition; in vec3 vertexPosition;
uniform mat4 mvp; uniform mat4 mvp;
void main() void main()
{ {
+2 -2
View File
@@ -26,7 +26,7 @@ final class RaylibGLNSView: NSOpenGLView {
override init(frame frameRect: NSRect) { override init(frame frameRect: NSRect) {
let attributes: [NSOpenGLPixelFormatAttribute] = [ let attributes: [NSOpenGLPixelFormatAttribute] = [
UInt32(NSOpenGLPFAOpenGLProfile), UInt32(NSOpenGLProfileVersion4_1Core), UInt32(NSOpenGLPFAOpenGLProfile), UInt32(NSOpenGLProfileVersion3_2Core),
UInt32(NSOpenGLPFAColorSize), 24, UInt32(NSOpenGLPFAColorSize), 24,
UInt32(NSOpenGLPFAAlphaSize), 8, UInt32(NSOpenGLPFAAlphaSize), 8,
UInt32(NSOpenGLPFADepthSize), 24, UInt32(NSOpenGLPFADepthSize), 24,
@@ -36,7 +36,7 @@ final class RaylibGLNSView: NSOpenGLView {
] ]
guard let format = NSOpenGLPixelFormat(attributes: attributes) else { guard let format = NSOpenGLPixelFormat(attributes: attributes) else {
fatalError("Unable to create an OpenGL 4.1 core pixel format") fatalError("Unable to create an OpenGL 3.2 core pixel format")
} }
super.init(frame: frameRect, pixelFormat: format)! super.init(frame: frameRect, pixelFormat: format)!