Package gaiasky.scene.record
Class VirtualTextureComponent
java.lang.Object
gaiasky.scene.record.NamedComponent
gaiasky.scene.record.VirtualTextureComponent
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IComponent
-
Field Summary
Modifier and TypeFieldDescriptionint
The indirection buffer texture.The location of the tiles in the file system.int
A power of two with a maximum of 1024.Fields inherited from class gaiasky.scene.record.NamedComponent
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
dispose()
void
doneLoading
(com.badlogic.gdx.assets.AssetManager manager) void
initialize
(String name, IMaterialProvider materialProvider, int indirectionAttributeId) void
setLocation
(String location) void
setSVTAttributes
(com.badlogic.gdx.graphics.Texture cacheBufferTexture) Sets the SVT cache and indirection buffers to the material for this VT.void
setTileSize
(Integer size) void
setTileSize
(Long size) boolean
Methods inherited from class gaiasky.scene.record.NamedComponent
createModelParameters, gaussian, gaussian, gaussian, initialize
-
Field Details
-
indirectionBuffer
The indirection buffer texture.TextureExt
enables drawing to any mipmap level. -
id
public int id -
location
The location of the tiles in the file system. This directory should contain a list of directories, one for each level, following the naming convention "level[LEVEL_NUMBER]", starting at "level0". The files should be named "tx_[COL]_[ROW].ext". -
locationUnpacked
-
tileSize
public int tileSizeA power of two with a maximum of 1024. -
tree
-
-
Constructor Details
-
VirtualTextureComponent
public VirtualTextureComponent()
-
-
Method Details
-
initialize
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager) -
buildIndirectionBuffer
public void buildIndirectionBuffer() -
buildTree
public void buildTree() -
setSVTAttributes
public void setSVTAttributes(com.badlogic.gdx.graphics.Texture cacheBufferTexture) Sets the SVT cache and indirection buffers to the material for this VT.- Parameters:
cacheBufferTexture
- The cache buffer, which is global.
-
svtAttributesSet
public boolean svtAttributesSet() -
setLocation
-
setTileSize
-
setTileSize
-
dispose
public void dispose()
-