mozilla

Compare Revisions

Getting started with WebGL

Change Revisions

Revision 37467:

Revision 37467 by Bandock on

Revision 37468:

Revision 37468 by Bandock on

Title:
Getting started with WebGL
Getting started with WebGL
Slug:
WebGL/Getting_started_with_WebGL
WebGL/Getting_started_with_WebGL
Tags:
Canvas, WebGL
Canvas, WebGL
Content:

Revision 37467
Revision 37468
t50    gl.clearColor(0.0, 0.0, 0.0, 1.0);  // Set clear color to blat50    gl.clearColor(0.0, 0.0, 0.0, 1.0);                      // Se
>ck, fully opaque>t clear color to black, fully opaque
51    gl.clearDepth(1.0);                 // Clear everything51    gl.clearDepth(1.0);                                     // Cl
 >ear everything
52    gl.enable(gl.DEPTH_TEST);           // Enable depth testing52    gl.enable(gl.DEPTH_TEST);                               // En
 >able depth testing
53    gl.depthFunc(gl.LEQUAL);            // Near things obscure fa53    gl.depthFunc(gl.LEQUAL);                                // Ne
>r things>ar things obscure far things

Back to History