kfeditor better light
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user