M3RenderEngine class

The WebGL rendering engine that manages shaders, framebuffers, and scene rendering.

Handles shader program creation, shadow mapping, 2D overlay rendering, and viewport management.

Constructors

M3RenderEngine()

Properties

bloomPass ↔ M3BloomPass
getter/setter pair
compositePass ↔ M3CompositePass
getter/setter pair
directionalShadowMap ↔ M3ShadowMap?
getter/setter pair
dofPass ↔ M3DofPass
getter/setter pair
fxaaPass ↔ M3FxaaPass
getter/setter pair
gl ↔ RenderingContext
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isShadowEnabled → bool
no setter
mainContext → M3RenderContext
main context (scene render)
final
options → M3RenderOptions
final
planarReflection ↔ M3PlanarReflection
getter/setter pair
probes → List<M3ReflectionProbe>
final
programs ↔ M3ProgramManager
getter/setter pair
renderTargets → M3RenderTargetManager
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scenePass ↔ M3ScenePass
getter/setter pair
spotLightShadowMap ↔ M3ShadowMap?
getter/setter pair
stats → M3RenderStats
final

Methods

attachAllProgramsLights(M3Scene scene) → void
bindDefaultFramebuffer() → void
Bind default framebuffer
cleanProbes() → void
clearBackground(Vector3 bgColor) → void
clear color buffer and depth buffer
dispose() → void
getSceneProgram(M3Scene scene) → M3ProgramLighting
get program shader for scene rendering
init(int width, int height, double dpr) → void
initShadowMap({bool enableShadow = true, int width = 2048, int height = 4096, int smWidth = 512, int? smHeight}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render2D() → void
Render 2D overlay, e.g. debug texts or other 2D elements
renderShadowMap(M3Scene scene) → void
Render shadow map
resize(int width, int height, double dpr) → void
resize rendering engine when application size changed
toString() → String
A string representation of this object.
inherited

Operators

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