Start a new topic

custom camera

how can i change the customcamer rendering color from orange to blue.

1 Comment

Hi,



you will have to change the color that is being used by the shader that produced the scanning effect. The source code can be found at the top of the OpenGLESScanningEffectRenderingPluginModule.cpp file.


Here's the original line of code (orange):


    gl_FragColor = vec4(mix(mix(vec3(c), vec3(1.0, 0.549, 0.0392), step(0.15, sobel)), cameraFrameColor.rgb, smoothstep(0.3, 0.7, distanceToScanline)), 1.0);\


Here's the updated line of code (blue);


    gl_FragColor = vec4(mix(mix(vec3(c), vec3(0.0, 0.0, 1.0), step(0.15, sobel)), cameraFrameColor.rgb, smoothstep(0.3, 0.7, distanceToScanline)), 1.0);\


( `vec3(1.0, 0.549, 0.0392)` changed to `vec3(0.0, 0.0, 1.0)` )


Feel free to tweak the color as you see fit, of course, my updated line will give you a 100% blue.



- Daniel

Login or Signup to post a comment