gkjohnson / three-gpu-pathtracer

Path tracing renderer and utilities for three.js built on top of three-mesh-bvh.
https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/index.html
MIT License
1.27k stars 125 forks source link

Ambient Occlusion Demo broken on MacOS Ventura 13.0 #544

Closed anzorb closed 4 months ago

anzorb commented 4 months ago

Describe the bug

Black Screen on Chrome and Safari on MacOS Ventura 13.0

Program Info Log: Fragment shader is not compiled.

FRAGMENT

ERROR: 0:956: 'rand4' : no matching overloaded function found
ERROR: 0:956: 'xy' :  field selection requires structure, vector, or interface block on left hand side
ERROR: 0:956: 'sampleHemisphere' : no matching overloaded function found
ERROR: 0:956: '=' : dimension mismatch
ERROR: 0:956: '=' : cannot convert from 'const mediump float' to 'highp 3-component vector of float'

https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/aoRender.html

Expected behavior

A working example

Screenshots and Repro Model

Screenshot 2024-02-20 at 6 02 54 PM

Platform:

gkjohnson commented 4 months ago

Fixed in c8a2e07. Thanks!