rename raylib dir to render
This commit is contained in:
1 parent
4ce7b4a10c
commit
0010ef00a6
5 files changed
+8
-8
No files matched your search
+4
-4
@@ -1,4 +1,4 @@
|
||||
let RAYLIB_SHADER_MAIN_FS = """
|
||||
let RENDER_SHADER_MAIN_FS = """
|
||||
#version 150
|
||||
|
||||
in vec3 vWorldPos;
|
||||
@@ -93,7 +93,7 @@ void main()
|
||||
}
|
||||
"""
|
||||
|
||||
let RAYLIB_SHADER_MAIN_VS = """
|
||||
let RENDER_SHADER_MAIN_VS = """
|
||||
#version 150
|
||||
in vec3 vertexPosition;
|
||||
in vec2 vertexTexCoord;
|
||||
@@ -119,7 +119,7 @@ void main()
|
||||
}
|
||||
"""
|
||||
|
||||
let RAYLIB_SHADER_SHADOW_FS = """
|
||||
let RENDER_SHADER_SHADOW_FS = """
|
||||
#version 150
|
||||
out vec4 finalColor;
|
||||
void main()
|
||||
@@ -128,7 +128,7 @@ void main()
|
||||
}
|
||||
"""
|
||||
|
||||
let RAYLIB_SHADER_SHADOW_VS = """
|
||||
let RENDER_SHADER_SHADOW_VS = """
|
||||
#version 150
|
||||
in vec3 vertexPosition;
|
||||
uniform mat4 mvp;
|
||||
@@ -58,8 +58,8 @@ final class RaylibGLNSView: NSOpenGLView {
|
||||
|
||||
updatePixelSize()
|
||||
sr_init(pixelWidth, pixelHeight,
|
||||
RAYLIB_SHADER_MAIN_VS, RAYLIB_SHADER_MAIN_FS,
|
||||
RAYLIB_SHADER_SHADOW_VS, RAYLIB_SHADER_SHADOW_FS)
|
||||
RENDER_SHADER_MAIN_VS, RENDER_SHADER_MAIN_FS,
|
||||
RENDER_SHADER_SHADOW_VS, RENDER_SHADER_SHADOW_FS)
|
||||
loadModel()
|
||||
startTime = CACurrentMediaTime()
|
||||
ready = true
|
||||
|
||||
@@ -6,7 +6,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
// 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,
|
||||
const char *main_vs, const char *main_fs,
|
||||
const char *shadow_vs, const char *shadow_fs);
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../../../../components/raylib/raylibConstShader.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/render/renderConstShader.swift
|
||||
Reference in new issue
Block a user