From ce9d6e8ad28b2d84d1a292a871c23b66a4654b54 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 13 Apr 2021 11:30:50 -0400 Subject: Add new guile-sdl2 and chickadee releases. --- manuals/chickadee/Shaders.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'manuals/chickadee/Shaders.html') diff --git a/manuals/chickadee/Shaders.html b/manuals/chickadee/Shaders.html index 8d4fcec..aed0f49 100644 --- a/manuals/chickadee/Shaders.html +++ b/manuals/chickadee/Shaders.html @@ -85,7 +85,7 @@ ul.no-bullet {list-style: none} Previous: , Up: Graphics   [Contents][Index]


-

2.3.14 Shaders

+

2.3.15 Shaders

Shaders are programs that the GPU can evaluate that allow the programmer to completely customized the final output of a GPU draw @@ -142,10 +142,10 @@ arguments), and some “uniforms” (keyword arguments).

(define my-shader (load-shader "vert.glsl" "frag.glsl"))
 (define vertices (make-vertex-array …))
-(gpu-apply my-shader vertices #:color red)
+(shader-apply my-shader vertices #:color red)
 
-

See Rendering Engine for more details about the gpu-apply +

See Rendering Engine for more details about the shader-apply procedure.

Shaders are incredibly powerful tools, and there’s more information @@ -201,7 +201,7 @@ compile them into a GPU shader program.

Procedure: shader-uniform-set! shader uniform value
-

2.3.14.1 Attributes

+

2.3.15.1 Attributes

Procedure: attribute? obj
@@ -223,7 +223,7 @@ compile them into a GPU shader program.

Return the data type of attribute.

-

2.3.14.2 Uniforms

+

2.3.15.2 Uniforms

Procedure: uniform? obj
@@ -245,7 +245,7 @@ compile them into a GPU shader program.

Return the current value of uniform.

-

2.3.14.3 User-Defined Shader Types

+

2.3.15.3 User-Defined Shader Types

The shader examples in this manual thus far have only shown uniforms defined using primitive types. However, GLSL shaders support -- cgit v1.2.3