Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NgxRenderTargetComponent

The Render Target component.

See the ngx3js docs page for details.

see

THREE.RenderTarget

Hierarchy

Implements

  • OnInit
  • OnDestroy

Index

Constructors

constructor

Properties

Protected OBJECT_ATTR

OBJECT_ATTR: string[] = ...

Object attr of abstract subscribe component

Protected TEXTURE_ATTR

TEXTURE_ATTR: string[] = []

The base attribute can be fine without re-make Texture

Protected _changeList

_changeList: string[] = null

Change list of abstract subscribe component

Protected _needUpdate

_needUpdate: boolean = true

Need update of abstract subscribe component

anisotropy

anisotropy: number = null

The number of samples taken along the axis through the pixel that has the highest density of texels. By default, this value is 1. A higher value gives a less blurry result than a basic mipmap, at the cost of more texture samples being used. Use renderer.getMaxAnisotropy() to find the maximum valid anisotropy value for the GPU; this value is usually a power of 2.

center

center: number = null

The point around which rotation occurs. A value of (0.5, 0.5) corresponds to the center of the texture. Default is (0, 0), the lower left.

The default value of centerX, centerY

centerX

centerX: number = null

The point around which rotation occurs. A value of (0.5, 0.5) corresponds to the center of the texture. Default is (0, 0), the lower left.

The value of center.x

centerY

centerY: number = null

The point around which rotation occurs. A value of (0.5, 0.5) corresponds to the center of the texture. Default is (0, 0), the lower left.

The value of center.y

count

count: number = 1

The count of render target component

cubeType

cubeType: string = null

The CubeType of Texture -

Notice - case insensitive.

data

data: number[] | BufferSource = null

The data of DataTexture

dataType

dataType: string = null

This must correspond to the .format. The default is THREE.UnsignedByteType, which will be used for most texture formats. See the texture constants page for details of other formats.

Three Type Value String(case insensitive)
THREE.UnsignedByteType UnsignedByteType , UnsignedByte,
THREE.ByteType ByteType , Byte
THREE.ShortType ShortType , Short
THREE.UnsignedShortType UnsignedShortType , UnsignedShort
THREE.IntType IntType , Int
THREE.UnsignedIntType UnsignedIntType , UnsignedInt
THREE.FloatType FloatType , Float
THREE.HalfFloatType HalfFloatType , HalfFloat
THREE.UnsignedShort4444Type UnsignedShort4444Type , UnsignedShort4444
THREE.UnsignedShort5551Type UnsignedShort5551Type , UnsignedShort5551
THREE.UnsignedShort565Type UnsignedShort565Type , UnsignedShort565
THREE.UnsignedInt248Type UnsignedInt248Type , UnsignedInt248

debug

debug: boolean = false

Debug this Object

depth

depth: number = null

depth of the texture.

depthBuffer

depthBuffer: boolean = null

The depthBuffer of composer component

depthTexture

depthTexture: any = null

The depthTexture of composer component

enabled

enabled: boolean = true

Enabled or Not

encoding

encoding: string = null

THREE.LinearEncoding is the default. See the texture constants page for details of other formats. Note that if this value is changed on a texture after the material has been used, it is necessary to trigger a Material.needsUpdate for this value to be realized in the shader.

Three Type Value String(case insensitive)
THREE.LinearEncoding LinearEncoding ,
THREE.sRGBEncoding sRGBEncoding ,
THREE.GammaEncoding GammaEncoding ,
THREE.RGBEEncoding RGBEEncoding ,
THREE.LogLuvEncoding LogLuvEncoding ,
THREE.RGBM7Encoding RGBM7Encoding ,
THREE.RGBM16Encoding RGBM16Encoding ,
THREE.RGBDEncoding RGBDEncoding ,

filter

filter: string = null

The Default Value of magFilter, minFilter

Three Type Value String(case insensitive)
THREE.NearestFilter NearestFilter, Nearest
THREE.NearestMipmapNearestFilter NearestMipmapNearestFilter, nearestmipmapnearest
THREE.NearestMipmapLinearFilter NearestMipmapLinearFilter, nearestmipmaplinear
THREE.LinearMipmapNearestFilter LinearMipmapNearestFilter, linearmipmapnearest
THREE.LinearMipmapLinearFilter LinearMipmapLinearFilter, linearmipmaplinear
THREE.LinearFilter Linearfilter, linear

flipY

flipY: boolean = null

If set to true, the texture is flipped along the vertical axis when uploaded to the GPU. Default is true. Note that this property has no effect for ImageBitmap. You need to configure on bitmap creation instead. See ImageBitmapLoader.

format

format: string = null

The default is THREE.RGBAFormat, although the TextureLoader will automatically set this to THREE.RGBFormat for JPG images. See the texture constants page for details of other formats.

Three Type Value String(case insensitive)
THREE.AlphaFormat AlphaFormat, Alpha
THREE.RedFormat RedFormat, Red
THREE.RedIntegerFormat RedIntegerFormat, RedInteger
THREE.RGFormat RGFormat, RG
THREE.RGIntegerFormat RGIntegerFormat, RGInteger
THREE.RGBFormat RGBFormat, RGB
THREE.RGBIntegerFormat RGBIntegerFormat, RGBInteger
THREE.RGBAIntegerFormat RGBAIntegerFormat, RGBAInteger
THREE.LuminanceFormat LuminanceFormat, Luminance
THREE.LuminanceAlphaFormat LuminanceAlphaFormat, LuminanceAlpha
THREE.RGBEFormat RGBEFormat, RGBE
THREE.DepthFormat DepthFormat, Depth
THREE.DepthStencilFormat DepthStencilFormat, DepthStencil
THREE.RGBAFormat RGBAFormat, RGBA

generateMipmaps

generateMipmaps: boolean = null

Whether to generate mipmaps (if possible) for a texture. True by default. Set this to false if you are creating mipmaps manually.

height

height: number = null

height of the texture.

Protected id

id: string = ''

The Id of abstract subscribe component

loaderType

loaderType: string = null

The LoadType of Texture - video, image etc hdrcube, hdrcubetexture - rgbm, rgbmtexture auto video imagebitmap image texture, texture2d, texture3d datatexture, datatexture2d, datatexture3d

Notice - case insensitive.

magFilter

magFilter: string = null

How the texture is sampled when a texel covers more than one pixel. The default is THREE.LinearFilter, which takes the four closest texels and bilinearly interpolates among them. The other option is THREE.NearestFilter, which uses the value of the closest texel. See the texture constants page for details.

Three Type Value String(case insensitive)
THREE.NearestFilter NearestFilter, Nearest
THREE.NearestMipmapNearestFilter NearestMipmapNearestFilter, nearestmipmapnearest
THREE.NearestMipmapLinearFilter NearestMipmapLinearFilter, nearestmipmaplinear
THREE.LinearMipmapNearestFilter LinearMipmapNearestFilter, linearmipmapnearest
THREE.LinearMipmapLinearFilter LinearMipmapLinearFilter, linearmipmaplinear
THREE.LinearFilter Linearfilter, linear

mapping

mapping: string = null

How the image is applied to the object. An object type of THREE.UVMapping is the default, where the U,V coordinates are used to apply the map. See the texture constants page for other mapping types.

Three Type Value String(case insensitive)
THREE.UVMapping UVMapping, uv
THREE.CubeReflectionMapping CubeReflectionMapping, cubereflection
THREE.CubeRefractionMapping CubeRefractionMapping, cuberefraction
THREE.EquirectangularReflectionMapping EquirectangularReflectionMapping, equirectangularreflection
THREE.EquirectangularRefractionMapping EquirectangularRefractionMapping, equirectangularrefraction
THREE.CubeUVReflectionMapping CubeUVReflectionMapping, cubeuvreflection
THREE.CubeUVRefractionMapping CubeUVRefractionMapping, cubeuvrefraction
THREE.Texture.DEFAULT_MAPPING default

minFilter

minFilter: string = null

How the texture is sampled when a texel covers less than one pixel. The default is THREE.LinearMipmapLinearFilter, which uses mipmapping and a trilinear filter. See the texture constants page for all possible choices.

Three Type Value String(case insensitive)
THREE.NearestFilter NearestFilter, Nearest
THREE.NearestMipmapNearestFilter NearestMipmapNearestFilter, nearestmipmapnearest
THREE.NearestMipmapLinearFilter NearestMipmapLinearFilter, nearestmipmaplinear
THREE.LinearMipmapNearestFilter LinearMipmapNearestFilter, linearmipmapnearest
THREE.LinearMipmapLinearFilter LinearMipmapLinearFilter, linearmipmaplinear
THREE.LinearFilter Linearfilter, linear

name

name: string = null

The name of the object (doesn't need to be unique). Default is an empty string.

offset

offset: number = null

How much a single repetition of the texture is offset from the beginning, in each direction U and V. Typical range is 0.0 to 1.0.

The default value of offsetX, offsetY

offsetX

offsetX: number = null

How much a single repetition of the texture is offset from the beginning, in each direction U and V. Typical range is 0.0 to 1.0.

The value of offset.x

offsetY

offsetY: number = null

How much a single repetition of the texture is offset from the beginning, in each direction U and V. Typical range is 0.0 to 1.0.

The value of offset.y

onDestory

onDestory: EventEmitter<NgxRenderTargetComponent> = ...

Will be called when before destory. The argument will be the loaded self

onLoad

onLoad: EventEmitter<NgxRenderTargetComponent> = ...

Will be called when load completes. The argument will be the loaded self

overrideParams

overrideParams: {} = null

The override params

Type declaration

  • [key: string]: any

Protected parent

parent: any = null

The Parent of abstract subscribe component

premultiplyAlpha

premultiplyAlpha: boolean = null

If set to true, the alpha channel, if present, is multiplied into the color channels when the texture is uploaded to the GPU. Default is false. Note that this property has no effect for ImageBitmap. You need to configure on bitmap creation instead. See ImageBitmapLoader.

programMipmaps

programMipmaps: any[] = null

The texture program mipmaps

programParam

programParam: any = null

The texture program params

refName

refName: string | string[] = null

The refName of geometry component

repeat

repeat: number = null

How many times the texture is repeated across the surface, in each direction U and V. If repeat is set greater than 1 in either direction, the corresponding Wrap parameter should also be set to THREE.RepeatWrapping or THREE.MirroredRepeatWrapping to achieve the desired tiling effect. Setting different repeat values for textures is restricted in the same way like Texture.offset.

The default value of repeatX , repeatY

repeatX

repeatX: number = null

How many times the texture is repeated across the surface, in each direction U and V. If repeat is set greater than 1 in either direction, the corresponding Wrap parameter should also be set to THREE.RepeatWrapping or THREE.MirroredRepeatWrapping to achieve the desired tiling effect. Setting different repeat values for textures is restricted in the same way like Texture.offset.

The value of repeat.x

repeatY

repeatY: number = null

How many times the texture is repeated across the surface, in each direction U and V. If repeat is set greater than 1 in either direction, the corresponding Wrap parameter should also be set to THREE.RepeatWrapping or THREE.MirroredRepeatWrapping to achieve the desired tiling effect. Setting different repeat values for textures is restricted in the same way like Texture.offset.

The value of repeat.y

rotation

rotation: number = null

How much the texture is rotated around the center point, in radians. Positive values are counter-clockwise. Default is 0.

scale

scale: number = null

scale of the texture.

Protected selfAny

selfAny: any = ...

size

size: number = 1024

The size of render target component

stencilBuffer

stencilBuffer: boolean = null

The stencilBuffer of composer component

Protected subscribeType

subscribeType: string = null

Subscribe type of abstract subscribe component

targetSize

targetSize: I3JS.Vector2 | NgxSizeComponent = null

The targetSize of pass component

text

text: string = null

The Texture param use when call Canvas Program.

Protected texture

texture: I3JS.Texture = null

The Texture of abstract texture component

textureAlign

textureAlign: string = null

tween

tween: {} = null

Tween animation params

Type declaration

  • [key: string]: any

type

type: string = 'RenderTarget'

The Input of render target component

Notice - case insensitive.

unpackAlignment

unpackAlignment: number = null

4 by default. Specifies the alignment requirements for the start of each pixel row in memory. The allowable values are 1 (byte-alignment), 2 (rows aligned to even-numbered bytes), 4 (word-alignment), and 8 (rows start on double-word boundaries). See glPixelStorei for more information.

userData

userData: any = null

An object that can be used to store custom data about the Object3D. It should not hold references to functions as these will not be cloned.

width

width: number = null

width of the texture.

windowExport

windowExport: string = null

Export this Object to window global variables

wrap

wrap: string = null

This defines how the texture is wrapped horizontally and corresponds to U in UV mapping. The default is THREE.ClampToEdgeWrapping, where the edge is clamped to the outer edge texels. The other two choices are THREE.RepeatWrapping and THREE.MirroredRepeatWrapping. See the texture constants page for details.

The Default Value of wrapS, wrapT.

Three Type Value String(case insensitive)
THREE.RepeatWrapping RepeatWrapping, wraprepeat, repeat
THREE.MirroredRepeatWrapping MirroredRepeatWrapping, mirroredrepeat
THREE.ClampToEdgeWrapping ClampToEdgeWrapping, clamptoedge

wrapS

wrapS: string = null

This defines how the texture is wrapped horizontally and corresponds to U in UV mapping. The default is THREE.ClampToEdgeWrapping, where the edge is clamped to the outer edge texels. The other two choices are THREE.RepeatWrapping and THREE.MirroredRepeatWrapping. See the texture constants page for details.

Three Type Value String(case insensitive)
THREE.RepeatWrapping RepeatWrapping, wraprepeat, repeat
THREE.MirroredRepeatWrapping MirroredRepeatWrapping, mirroredrepeat
THREE.ClampToEdgeWrapping ClampToEdgeWrapping, clamptoedge

wrapT

wrapT: string = null

This defines how the texture is wrapped vertically and corresponds to V in UV mapping. The same choices are available as for [property:number wrapS]. NOTE: tiling of images in textures only functions if image dimensions are powers of two (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels. Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL, not three.js.

Three Type Value String(case insensitive)
THREE.RepeatWrapping RepeatWrapping, wraprepeat, repeat
THREE.MirroredRepeatWrapping MirroredRepeatWrapping, mirroredrepeat
THREE.ClampToEdgeWrapping ClampToEdgeWrapping, clamptoedge

Accessors

needUpdate

  • set needUpdate(value: boolean): void
  • Sets need update

    Parameters

    • value: boolean

    Returns void

Methods

addChanges

  • addChanges(key: string | string[] | SimpleChanges): void

Protected applyChanges

  • applyChanges(changes: string[]): void

Protected applyTexture2Material

Protected callOnLoad

  • callOnLoad(): void

Protected checkChanges

  • checkChanges(changes: SimpleChanges): SimpleChanges

Protected clearChanges

  • clearChanges(): void

Protected consoleLog

  • consoleLog(key: string, object: any, level?: string): void

Protected consoleLogTime

  • consoleLogTime(key: string, object: any, repeat?: number): void

Protected destroyLocalComponent

  • destroyLocalComponent(key: string): void

dispose

  • dispose(): void

Protected getChanges

  • getChanges(): string[]

getId

  • getId(): string

getObject

  • getObject<T>(): T

Protected getOffset

getRenderTarget

  • getRenderTarget<T>(): T

Protected getRepeat

getSubscribe

  • getSubscribe(): Observable<string[]>

getTexture

  • getTexture<T>(): T

getTextureImage

getTextureOptions

  • getTextureOptions(options?: {}): {}

Protected getTimeout

  • getTimeout(timeDelay?: number): Promise<void>

getUserData

  • getUserData(): {}

Protected initLocalComponent

  • initLocalComponent<T>(key: string, component: T): T

Protected isIdEuals

  • isIdEuals(id: string): boolean

isTexture

  • isTexture(type: String): boolean

ngAfterContentInit

  • ngAfterContentInit(): void

ngOnChanges

  • ngOnChanges(changes: SimpleChanges): void
  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated. default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

    Parameters

    • changes: SimpleChanges

      The changed properties.

    Returns void

ngOnDestroy

  • ngOnDestroy(): void

ngOnInit

  • ngOnInit(): void
  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

    Returns void

resetTween

  • resetTween(): void

runSubscribeNext

  • runSubscribeNext(key: string | string[]): void

setMaterial

Protected setObject

  • setObject(obj: any): void

setParent

  • setParent(parent: any): boolean

setReferTexture

  • setReferTexture(texture: any): void

setSubscribeNext

  • setSubscribeNext(key: string | string[]): void

setSubscribeType

  • setSubscribeType(subscribeType: string): void

setTexture

Protected setTextureLoaded

setTween

  • setTween(tweenData: {}): void

setTweenTarget

  • setTweenTarget(tweenTarget: any): void

setUserData

  • setUserData(key: string, value: any): void

Protected subscribeListQuery

  • subscribeListQuery(queryList: QueryList<any>, subscribeKey: string, changeKey: string): void

Protected subscribeListQueryChange

  • subscribeListQueryChange(queryList: QueryList<any>, subscribeKey: string, changeKey: string): void

Protected subscribeRefer

  • subscribeRefer(key: string, subscription: Subscription): void

Protected subscribeReferList

  • subscribeReferList(key: string, subscription: Subscription): void

synkMaterial

  • synkMaterial(texture?: I3JS.Texture, key?: string): void

Protected unSubscribeRefer

  • unSubscribeRefer(key: string): void

Protected unSubscribeReferList

  • unSubscribeReferList(key: string): void

Protected unSubscription

  • unSubscription(subscriptions: Subscription[]): Subscription[]

unsetMaterial

updateInputParams

  • updateInputParams(params: {}, firstChange?: boolean, changes?: SimpleChanges, type?: string): void

Static getTextureImage

Static getTextureImageOption

  • getTextureImageOption(image: any, optionsTxt?: string, loaderType?: string, cubeImage?: string[], onLoad?: () => void): I3JS.Texture

Static setTextureOptions

  • setTextureOptions(texture: {}, options?: {}): any

Generated using TypeDoc