Stream entity material overrides and color changes #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Entities can have their render color and material overridden at runtime (e.g.,
Entity:SetColor(),Entity:SetMaterial(),Entity:SetSubMaterial()). These aren't currently streamed or rendered.What needs to be streamed
Render color
Entity:GetColor()returnsColor(r, g, b, a)Material override
Entity:GetMaterial()— replaces all materials on the entity with a single material pathEntity:GetSubMaterial(index)— replaces a specific material slotImplementation
Server side
EntityStateClient side
Relates to
Related: #8 (VMT shader types). Entity-level material overrides depend on having a shader system that can accept per-entity parameters. #8 provides the base material pipeline, this issue adds the runtime override layer on top.
Also part of the broader asset rendering effort tracked in #5.