kfeditor better light

This commit is contained in:
STEINNI
2025-10-29 18:47:48 +00:00
parent dfab013abe
commit af23d09aa2
4 changed files with 53 additions and 9 deletions
+5 -2
View File
@@ -2,6 +2,8 @@ import * as THREE from '/app/thirdparty/Three/three.module.js'
import { EffectComposer } from '/app/thirdparty/Three/postprocessing/EffectComposer.module.js'
import { RenderPass } from '/app/thirdparty/Three/postprocessing/RenderPass.module.js'
import { OutlinePass } from '/app/thirdparty/Three/postprocessing/OutlinePass.module.js'
import { ShaderPass } from '/app/thirdparty/Three/postprocessing/ShaderPass.module.js'
import { GammaCorrectionShader } from '/app/thirdparty/Three/shaders/GammaCorrectionShader.module.js'
if(!app.helpers) app.helpers = {}
/**
@@ -130,8 +132,9 @@ app.helpers.helpers3D = {
this.composer.addPass(this.outlinePass)
this.highlighted3DObjects = []
this.outlinePass.selectedObjects = this.highlighted3DObjects
this.outlinePass.selectedObjects = this.highlighted3DObjects
this.composer.addPass(new ShaderPass(GammaCorrectionShader))
}
},