wall render bug fixed

- wall wouldn't render if transparent-yet-sold tiles like glass is placed on top of it
This commit is contained in:
minjaesong
2017-07-15 00:02:00 +09:00
parent 61427b849a
commit 5499ded796
12 changed files with 242 additions and 155 deletions

View File

@@ -674,14 +674,14 @@ object BlendMode {
const val SCREEN = "GL_BLEND screen"
const val MULTIPLY = "GL_BLEND multiply"
const val NORMAL = "GL_BLEND normal"
//const val MAX = "GL_MAX"
//const val MAX = "GL_MAX" // not supported by GLES -- use shader
fun resolve(mode: String) {
when (mode) {
SCREEN -> blendScreen()
MULTIPLY -> blendMul()
NORMAL -> blendNormal()
//MAX -> blendLightenOnly()
//MAX -> blendLightenOnly() // not supported by GLES -- use shader
else -> throw Error("Unknown blend mode: $mode")
}
}