SphereShaderManager class

Helper class to manage shader loading and texture binding

Constructors

SphereShaderManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
isReady bool
Whether the shader program is loaded (ready to create shader instances)
no setter
loadError String?
Error message if loading failed
no setter
loadFailed bool
Whether shader loading failed permanently (after max retries)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createShaderWithTextures({required Image daySurface, Image? nightSurface}) FragmentShader?
Create a shader instance with bound textures Returns a new shader instance each time to ensure fresh state
forceReload() → void
Force a complete reload of the shader program This is useful for web platform where WebGL context can be lost
loadShader() Future<bool>
Load the shader program from assets
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetLoadState() → void
Reset the failure state to allow retrying
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited