Introduce chkgfx #3
@@ -1,6 +1,14 @@
|
|||||||
import AppKit
|
import AppKit
|
||||||
import RaylibBridge
|
import RaylibBridge
|
||||||
|
|
||||||
|
let RENDER_CONFIG = sr_config(
|
||||||
|
fov_y: 45.0,
|
||||||
|
near_plane: 0.1,
|
||||||
|
far_plane: 1000.0,
|
||||||
|
shadow_size: 256,
|
||||||
|
ground_size: 40.0
|
||||||
|
)
|
||||||
|
|
||||||
let RENDER_OPENGL_ATTRS: [NSOpenGLPixelFormatAttribute] = [
|
let RENDER_OPENGL_ATTRS: [NSOpenGLPixelFormatAttribute] = [
|
||||||
UInt32(NSOpenGLPFAOpenGLProfile), UInt32(NSOpenGLProfileVersion3_2Core),
|
UInt32(NSOpenGLPFAOpenGLProfile), UInt32(NSOpenGLProfileVersion3_2Core),
|
||||||
UInt32(NSOpenGLPFAColorSize), 24,
|
UInt32(NSOpenGLPFAColorSize), 24,
|
||||||
@@ -10,11 +18,3 @@ let RENDER_OPENGL_ATTRS: [NSOpenGLPixelFormatAttribute] = [
|
|||||||
UInt32(NSOpenGLPFAAccelerated),
|
UInt32(NSOpenGLPFAAccelerated),
|
||||||
0
|
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
|
|
||||||
)
|
|
||||||
Reference in new issue
Block a user