forked from LeenkxTeam/LNXSDK
t3du - CA Updates
This commit is contained in:
@ -529,8 +529,14 @@ class Inc {
|
|||||||
public static function applyConfig() {
|
public static function applyConfig() {
|
||||||
#if lnx_config
|
#if lnx_config
|
||||||
var config = leenkx.data.Config.raw;
|
var config = leenkx.data.Config.raw;
|
||||||
|
|
||||||
|
#if rp_chromatic_aberration
|
||||||
|
Postprocess.chromatic_aberration_uniforms[3] = config.rp_chromatic_aberration == true ? 1 : 0;
|
||||||
|
#end
|
||||||
|
|
||||||
// Resize shadow map
|
// Resize shadow map
|
||||||
var l = path.light;
|
var l = path.light;
|
||||||
|
if (l != null){
|
||||||
if (l.data.raw.type == "sun" && l.data.raw.shadowmap_size != config.rp_shadowmap_cascade) {
|
if (l.data.raw.type == "sun" && l.data.raw.shadowmap_size != config.rp_shadowmap_cascade) {
|
||||||
l.data.raw.shadowmap_size = config.rp_shadowmap_cascade;
|
l.data.raw.shadowmap_size = config.rp_shadowmap_cascade;
|
||||||
var rt = path.renderTargets.get("shadowMap");
|
var rt = path.renderTargets.get("shadowMap");
|
||||||
|
Reference in New Issue
Block a user