|
|
|
-
New Appearance.alphaChannel field (
TAppearanceNode.AlphaChannelin Pascal) determines alpha channel treatment when rendering a shape with given appearance. We can use alpha testing, alpha blending, or ignore the alpha channel (render as opaque).This field overrides the engine auto-detection “how to treat alpha”, which normally looks at
Material.trasparentand the alpha channels of textures (which can, in turn, be affected by ImageTexture.alphaChannel). If you setAppearance.alphaChannelto something other than"AUTO"then we avoid any auto-detection, and we just render according to this field.This corresponds to glTF
alphaMode. -
New utility methods TCastle2DSceneManager.PositionTo2DWorld and TCastleSceneManager.PositionToWorldPlane have been added, to easily convert mouse/touch position into a position inside 3D/2D game world.
Our example 2d_dragon_spine_game inside CGE sources demonstrates this, using
SceneManager.PositionToWorldPlaneto determine target position of the dragon. Also, this example now demonstrates animation blending. -
glTF texture can be converted to a
MovieTexture. If your texture URL is like .avi or .mpg, we will automatically load it asMovieTexturein X3D, and it will actually play in a loop (if you have ffmpeg installed).


