new QuadNormal( params ) → {QuadNormal}

Description
Create a QuadNormal object
Parameters
Name Type Description
params Object quad parameter object
Returns

Members


material :ShaderMaterial

Description
Material for QuadNormal

useTexture :boolean

Description
Should the quad use a texture

nScale :number

Description
Scale of the quad

point :Array

Description
World-space point to place quad at

init

Description
Initialize QuadNormal in WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext to initialize in
onInit * Callback fired when initialized

createCollisionGeo

Description
Unused function, required for Drawable Interface

rayCastFrom

Description
Raycast to geometry, required for Drawable Interface
Returns
false

hitTest

Description
Raycast to geometry, required for Drawable Interface
Returns
false

onSelection

Description
Unused function, required for Drawable Interface

update

Description
Updates Uniforms in WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext
sceneProps Object Scene uniform object
time number frametime

draw

Description
Draws object to WebglContext
Parameters
Name Type Description
gl WebglContext WebglCOntext to draw to

setPoint

Description
Updates quad target point
Parameters
Name Type Description
lat number new point latitude
lon number new point longitude
alt number new point altitude