Constructor

new(scene:Scene)

Variables

read onlycamera:Camera

currentObject:Object

The object being drawn, used to tell if the streamed textures it uses are visible.

@:value(new h3d.scene.View(0))currentView:View = new h3d.scene.View(0)

@:value(-1)forcedScreenRatio:Float = -1

@:value(1.0)meshLodScale:Float = 1.0

@:value(1)numViews:Int = 1

read onlyscene:Scene

visibilityFrustum:Frustum

The frustum an object must intersect for its streamed textures to be visible : the camera frustum, or the light frustum while a shadow map is drawn (see h3d.pass.Shadows).

Methods

@:value({ barrier : true, z : 1, y : 1, x : 1 })computeDispatch(?shader:Shader, x:Int = 1, y:Int = 1, z:Int = 1, barrier:Bool = true):Void

done():Void

@:value({ index : 0 })@:access(h3d.mat.Pass)inlineemit(mat:Material, obj:Object, index:Int = 0):Void

inlinegetGlobal(name:String):Dynamic

getStreamingFeedback():StreamingFeedback

Returns the GPU feedback of the streamed textures visibility, or null if unsupported.

inlinenextPass():Void

selectBufferHandles(handles:Array<BufferHandle>):Void

@:value({ markVisible : true })selectTextureHandles(handles:Array<TextureHandle>, markVisible:Bool = true):Void

setCamera(cam:Camera):Void

setCurrentView(viewIdx:Int, viewFrustum:Frustum):Void

inlinesetGlobal(name:String, v:Dynamic):Void

setRenderResolution(width:Int, height:Int):Void

start():Void

updateNumViews(numViews:Int):Void

Inherited Variables

Defined by RenderContext

frame:Int

@:value(new h3d.shader.Buffers())shaderBuffers:Buffers = new h3d.shader.Buffers()

time:Float

Inherited Methods

Defined by RenderContext

@:value({ compute : false })fillParams(buf:Buffers, s:RuntimeShader, shaders:ShaderList, compute:Bool = false):Void

@:value({ opt : false })inlinegetParamValue(p:AllocParam, shaders:ShaderList, opt:Bool = false):Dynamic

setCurrent():Void