-
-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Labels
feature requestNew feature requestNew feature request
Description
Is your feature request related to a problem?
Refereing to ths kalidoscope example i managed to get sobel added as a pass.
It works great but i have no blend options and cannot add it into the effect pass stack.
Describe the solution you'd like
Convert Sobel operator shader into an internal effect and maybe add controls to tweak the output (color , strength ,etc)
Additional context
three example https://threejs.org/examples/?q=sobel#webgl_postprocessing_sobel
three file https://github.com/mrdoob/three.js/blob/master/examples/jsm/shaders/SobelOperatorShader.js
Code I used to add Sobel Shader as a shader pass
const shaderMaterial = new ShaderMaterial(SobelOperatorShader)
const shaderPass = new ShaderPass(shaderMaterial, "tDiffuse")
shaderMaterial.uniforms.resolution.value.x = window.innerWidth
shaderMaterial.uniforms.resolution.value.y = window.innerHeight
composer.addPass(shaderPass)
BTW Awesome work with the library !
abernier
Metadata
Metadata
Assignees
Labels
feature requestNew feature requestNew feature request