Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

FragmentShader

allotrop3 edited this page Aug 17, 2015 · 9 revisions

Entity » Shader » FragmentShader

A fragment shader is a shader of type gl.FRAGMENT_SHADER and used to maintain the source code strings that define a shader executable on the programmable fragment processor.

new Four.FragmentShader({ name, selector* })
Name Type Default Description
name string fragment.shader Specifies the entities friendly name.
selector string Specifies a css class selector that points to the location of the shader in the HTML.

Properties

See inherited properties – Entity and Shader.

Methods

See inherited methods – Entity and Shader.