question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

List all built-in GLSL functions in ShaderMaterial Doc

See original GitHub issue

Hi, I think it would be great to add list of all the available built-in GLSL functions in the ShaderMaterial docs. This can be very useful when creating a custom shader.

This will certainly add more value to the documentation and will avoid confusion while searching functions elsewhere and interpreting it for threejs.

Thanks Team.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
greggmancommented, May 24, 2018

How about just link to the WebGL Reference Card?

Last 2 pages cover all of GLSL

https://www.khronos.org/files/webgl/webgl-reference-card-1_0.pdf

Unlike the list above they also tersely document what most of them do

1reaction
Mugen87commented, May 24, 2018

I think that is somewhat misleading. The section “Built-in attributes and uniforms” refers to program entities provided by three.js. The new section “Built-in functions” would refer to entities provided by GLSL instead. I (and maybe other users) would expect GLSL functions defined by three.js.

Against this backdrop, Useful Links seems more appropriate to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ShaderMaterial – three.js docs
A material rendered with custom shaders. A shader is a small program written in GLSL that runs on the GPU. You may want...
Read more >
12.5 - GLSL Built-in Functions and Variables - Learn WebGL
GLSL provides a significant number of built-in functions and you should be familiar with them. A complete list of these functions can be...
Read more >
List of GLSL ES built-in variables
I am writing an article on WebGL and three.js, I'm trying to search all the built-in variables available in the vertex and fragment...
Read more >
GLSL Shaders - Game development - MDN Web Docs
Fragment Shaders compute the renderings of a shape's colors and other ... variable — this is a special, global, and built-in GLSL variable....
Read more >
GLSL & Shaders Tutorial - Understanding The Syntax And ...
And also the whats and hows behind shaders, the vertex and frag... ... GLSL built-in functions https://www.shaderific.com/ glsl -funct.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found