clarifying the intro docs

This commit is contained in:
Ben Fry
2022-01-10 23:46:32 -05:00
parent 7a3c817b51
commit 22f2540460
+10 -8
View File
@@ -33,16 +33,18 @@ import java.nio.IntBuffer;
import java.util.HashMap;
/**
* This class encapsulates a GLSL shader program, including a vertex and a
* fragment shader. It's compatible with the P2D and P3D renderers, but not with
* the default renderer. Use the <b>loadShader()</b> function to load your
* shader code. [Note: It's strongly encouraged to use <b>loadShader()</b> to
* create a <b>PShader</b> object, rather than calling the <b>PShader</b> constructor
* manually.]
* This class encapsulates a GLSL shader program, including a vertex
* and a fragment shader. It is compatible with P2D and P3D, but not
* with the default renderer.
*
* Use the <b>loadShader()</b> function to load your shader code.
* Note: It's strongly encouraged to use <b>loadShader()</b> to create
* a <b>PShader</b> object, rather than calling the <b>PShader</b>
* constructor manually.
*
* @webref rendering:shaders
* @webBrief This class encapsulates a GLSL shader program, including a vertex
* and a fragment shader
* @webBrief This class encapsulates a GLSL shader program,
* including a vertex and a fragment shader
*/
public class PShader implements PConstants {
static protected final int POINT = 0;