hoverinc / ray-tracing-renderer

[UNMAINTAINED] Real-time path tracing on the web with three.js
https://hoverinc.github.io/ray-tracing-renderer/
MIT License
645 stars 68 forks source link

Broken demo #243

Open ronzim opened 2 years ago

ronzim commented 2 years ago

Shader error:

Uncaught ERROR: 0:87: 'isampler2D' : No precision specified WARNING: 0:1183: '1.0e999' : Float overflow

bhouston commented 2 years ago

You should get this project working again so it can be compared against this fork: https://lgltracer.com

vinkovsky commented 2 years ago

Hi, @ronzim ! You can fix this error by editing this line in makeShaderStage function

let str = "#version 300 es\nprecision mediump float;\nprecision mediump int;\nprecision lowp isampler2D;\n";

in RenderPass.js file

ronzim commented 2 years ago

Thank you @vinkovsky! I'll try asap

vinkovsky commented 2 years ago

You're welcome. I faced with another issues. I have WebGL: ERROR: 0:10: 'out_matProps' : output location must be < MAX_DRAW_BUFFERS error in safari