Class TopLevelEmbeddedEnvironment
java.lang.Object
com.jozufozu.flywheel.backend.util.AtomicReferenceCounted
com.jozufozu.flywheel.backend.engine.embed.AbstractEmbeddedEnvironment
com.jozufozu.flywheel.backend.engine.embed.TopLevelEmbeddedEnvironment
- All Implemented Interfaces:
VisualEmbedding,VisualizationContext,Environment
-
Field Summary
Fields inherited from class com.jozufozu.flywheel.backend.engine.embed.AbstractEmbeddedEnvironment
normal, pose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled in EnvironmentStorage#flushvoidcollectLight(net.minecraft.world.level.BlockAndTintGetter level, int minX, int minY, int minZ, int sizeX, int sizeY, int sizeZ) Collect light information from the given level for the given box.voidcomposeMatrices(org.joml.Matrix4f pose, org.joml.Matrix3f normal) voidflush()voidReset any collected lighting information.voidsetupLight(GlProgram program) Methods inherited from class com.jozufozu.flywheel.backend.engine.embed.AbstractEmbeddedEnvironment
_delete, contextShader, createEmbedding, delete, instancerProvider, renderOrigin, setupCull, setupDraw, transformsMethods inherited from class com.jozufozu.flywheel.backend.util.AtomicReferenceCounted
acquire, isDeleted, referenceCount, releaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.backend.engine.embed.Environment
acquire, release
-
Constructor Details
-
TopLevelEmbeddedEnvironment
-
-
Method Details
-
flush
public void flush()- Overrides:
flushin classAbstractEmbeddedEnvironment
-
collectLight
public void collectLight(net.minecraft.world.level.BlockAndTintGetter level, int minX, int minY, int minZ, int sizeX, int sizeY, int sizeZ) Description copied from interface:VisualEmbeddingCollect light information from the given level for the given box.Call this method on as many or as few boxes as you need to encompass all child visuals of this embedding.
After this method is called, instances rendered from this embedding within the given box will be lit as if they were in the given level.
- Parameters:
level- The level to collect light information from.minX- The minimum x coordinate of the box.minY- The minimum y coordinate of the box.minZ- The minimum z coordinate of the box.sizeX- The size of the box in the x direction.sizeY- The size of the box in the y direction.sizeZ- The size of the box in the z direction.
-
invalidateLight
public void invalidateLight()Description copied from interface:VisualEmbeddingReset any collected lighting information. -
setupLight
- Specified by:
setupLightin classAbstractEmbeddedEnvironment
-
composeMatrices
public void composeMatrices(org.joml.Matrix4f pose, org.joml.Matrix3f normal) - Specified by:
composeMatricesin classAbstractEmbeddedEnvironment
-
actuallyDelete
public void actuallyDelete()Description copied from class:AbstractEmbeddedEnvironmentCalled in EnvironmentStorage#flush- Specified by:
actuallyDeletein classAbstractEmbeddedEnvironment
-