forked from LeenkxTeam/LNXSDK
Merge pull request 'main' (#10) from Onek8/LNXSDK:main into main
Reviewed-on: LeenkxTeam/LNXSDK#10
This commit is contained in:
commit
e562b626cb
BIN
Krom/Krom_opengl.exe
Normal file
BIN
Krom/Krom_opengl.exe
Normal file
Binary file not shown.
@ -88,7 +88,7 @@ float lpToDepth(vec3 lp, const vec2 lightProj) {
|
||||
}
|
||||
|
||||
#ifndef _ShadowMapAtlas
|
||||
vec3 PCFCube(samplerCubeShadow shadowMapCube, samplerCube shadowMapCubeTransparent, vec3 lp, vec3 ml, float bias, vec2 lightProj, vec3 n, bool transparent) {
|
||||
vec3 PCFCube(samplerCubeShadow shadowMapCube, samplerCube shadowMapCubeTransparent, vec3 lp, vec3 ml, float bias, vec2 lightProj, vec3 n, const bool transparent) {
|
||||
const float s = shadowmapCubePcfSize;
|
||||
float compare = lpToDepth(lp, lightProj) - bias * 1.5;
|
||||
ml = ml + n * bias * 20;
|
||||
|
@ -191,7 +191,10 @@ def get_gapi():
|
||||
return getattr(item, target_to_gapi(item.lnx_project_target))
|
||||
if wrd.lnx_runtime == 'Browser':
|
||||
return 'webgl'
|
||||
return 'direct3d11' if get_os() == 'win' else 'opengl'
|
||||
if get_os() == 'win' and lnx.utils.get_rp().rp_voxels == 'Off':
|
||||
return 'direct3d11'
|
||||
else:
|
||||
return 'opengl'
|
||||
|
||||
|
||||
def is_gapi_gl_es() -> bool:
|
||||
@ -348,7 +351,10 @@ def krom_paths():
|
||||
sdk_path = get_sdk_path()
|
||||
if lnx.utils.get_os() == 'win':
|
||||
krom_location = sdk_path + '/Krom'
|
||||
krom_path = krom_location + '/Krom.exe'
|
||||
if lnx.utils.get_rp().rp_voxels == 'Off':
|
||||
krom_path = krom_location + '/Krom.exe'
|
||||
else:
|
||||
krom_path = krom_location + '/Krom_opengl.exe'
|
||||
elif lnx.utils.get_os() == 'mac':
|
||||
krom_location = sdk_path + '/Krom/Krom.app/Contents/MacOS'
|
||||
krom_path = krom_location + '/Krom'
|
||||
|
Loading…
x
Reference in New Issue
Block a user