<p>Do current WebGL capabilities allow to use Clustered Lighting? If not what is it missing to allow that? Basically WebGL uses GLES 2, so is that possible with GLES 2?</p>

<p>I want to implement this one:</p>

<p><a href="http://www.cse.chalmers.se/~uffe/clustered_shading_preprint.pdf" rel="nofollow">Clustered Shading</a></p>

<p>And use as fallback this one:</p>

<p><a href="https://worldoffries.wordpress.com/2015/02/19/simple-alternative-to-clustered-shading-for-thousands-of-lights/" rel="nofollow">Alternative to Clustered shading</a></p>

CC BY-SA 3.0
2016-08-22T01:11:42.393Z
Could you [edit] to expand on exactly what you require, and what you have tried? Is there a particular approach to clustered lights that you want to implement? What effect are you looking to achieve?
trichoplax is on Codidact now
CC BY-SA 3.0
2016-08-22T15:02:55.103Z
WebGL doesn't have compute shaders and I'm not sure if clustered lighting would be fast enough without them.
SurvivalMachine
<rendering><lighting><webgl>
Can I Implement Clustered Lighting with WebGL?
CoffeDeveloper
# Can I Implement Clustered Lighting with WebGL?

(Asked by: username_0 on 2016-08-22)

Do current WebGL capabilities allow to use Clustered Lighting? If not what is it missing to allow that? Basically WebGL uses GLES 2, so is that possible with GLES 2?

I want to implement this one:

[Clustered Shading](http://www.cse.chalmers.se/~uffe/clustered_shading_preprint.pdf)

And use as fallback this one:

[Alternative to Clustered shading](https://worldoffries.wordpress.com/2015/02/19/simple-alternative-to-clustered-shading-for-thousands-of-lights/)

**Tags:** rendering, lighting, webgl

> **Comments:**
> **username_1**: Could you [edit] to expand on exactly what you require, and what you have tried? Is there a particular approach to clustered lights that you want to implement? What effect are you looking to achieve?  
> **username_2**: WebGL doesn't have compute shaders and I'm not sure if clustered lighting would be fast enough without them.  

---

## 0 answers

