summaryrefslogtreecommitdiff
path: root/Data/Scripts/Editor/AssetBrowser.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-31 17:29:32 +0800
committerchai <chaifix@163.com>2021-10-31 17:29:32 +0800
commit98d05c5030ba1c35ddfe402790702b3f44c63134 (patch)
treed251ae9e96a46947bc4fa65817f2ebfa4b07087a /Data/Scripts/Editor/AssetBrowser.lua
parent4b24de9ef863f54eb09a5fa1f18e2905cedcc439 (diff)
- Runtime Proj
+ Runner Proj
Diffstat (limited to 'Data/Scripts/Editor/AssetBrowser.lua')
-rw-r--r--Data/Scripts/Editor/AssetBrowser.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/Data/Scripts/Editor/AssetBrowser.lua b/Data/Scripts/Editor/AssetBrowser.lua
index 7c73ec3..d726654 100644
--- a/Data/Scripts/Editor/AssetBrowser.lua
+++ b/Data/Scripts/Editor/AssetBrowser.lua
@@ -16,14 +16,14 @@ local tex
AssetBrowser.OnGUI = function(self)
-
if tex == nil then
tex = Engine.Resource.LoadTexture("./Resources/Images/brickwall.jpg")
end
if shader == nil then
- local glsl = IO.ReadFile("./Resources/Shaders/Editor-Text.glsl", IO.EFileMode.Text)
- shader = Engine.Rendering.Shader.New(glsl)
+ -- local glsl = IO.ReadFile("./Resources/Shaders/Editor-Text.glsl", IO.EFileMode.Text)
+ -- shader = Engine.Rendering.Shader.New(glsl)
+ shader = Engine.Rendering.Shader.CreateFromFile("./Resources/Shaders/Editor-Text.glsl")
end
local ortho = Matrix44.New()