using gl32 shaders for other runnables

This commit is contained in:
minjaesong
2023-02-28 22:59:32 +09:00
parent e13cfd37b0
commit 2474583a86
9 changed files with 12 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
package net.torvald.terrarum
import com.badlogic.gdx.graphics.glutils.ShaderProgram
/**
* Created by minjaesong on 2023-02-28
*/
object DefaultGL32Shaders {
fun createSpriteBatchShader(): ShaderProgram {
return App.loadShaderFromClasspath("shaders/gl32spritebatch.vert", "shaders/gl32spritebatch.frag")
}
fun createShapeRendererShader(): ShaderProgram {
return App.loadShaderFromClasspath("shaders/gl32shaperenderer.vert", "shaders/gl32shaperenderer.frag")
}
}