Skip to content

Material extension #2627

@Denneisk

Description

@Denneisk

Suggestion for a brand-new E2 Extension: material or materialcore. Its purpose is quite simple, to create materials.

Would need some restriction to avoid abuse but it should be overall somewhat simple. 16 is probably enough for default but a convar should be used.
The internal name of the material should probably be formatted something like wire_playerAccountID_index.

Sample functions:

  • string = materialCreate(index, string basematerial, string shader, table args) advanced format (basically 1:1 of CreateMaterial)
  • string = materialCreate(index, string basematerial, width, height, x, y) simple format (shader defaults to vertexlitgeneric)
  • materialSetParam(index, string key, string value) sets a single shader parameter

Not sure if the shader parameter will cause any issues, just thought it could be neat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E2This issue is related to E2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions