This commit is contained in:
Михаил Капелько committed 2026-10-19 07:10:51 +03:00
1 parent fbb02855ee
commit cc445309e8
4 files changed
+35 -17

No files matched your search

@@ -36,7 +36,8 @@ final class RenderGLView: NSOpenGLView {
updatePixelSize()
sr_init(pixelWidth, pixelHeight,
RENDER_SHADER_MAIN_VS, RENDER_SHADER_MAIN_FS,
RENDER_SHADER_SHADOW_VS, RENDER_SHADER_SHADOW_FS)
RENDER_SHADER_SHADOW_VS, RENDER_SHADER_SHADOW_FS,
RENDER_CONFIG)
loadModel()
startTime = CACurrentMediaTime()
ready = true
+8
View File
@@ -1,4 +1,5 @@
import AppKit
import RaylibBridge
let RENDER_OPENGL_ATTRS: [NSOpenGLPixelFormatAttribute] = [
UInt32(NSOpenGLPFAOpenGLProfile), UInt32(NSOpenGLProfileVersion3_2Core),
@@ -10,3 +11,10 @@ let RENDER_OPENGL_ATTRS: [NSOpenGLPixelFormatAttribute] = [
0
]
let RENDER_CONFIG = sr_config(
fov_y: 45.0,
near_plane: 0.1,
far_plane: 1000.0,
shadow_size: 1024,
ground_size: 40.0
)