Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mlang based materials #266

Merged
merged 35 commits into from
Jan 19, 2024
Merged

Add Mlang based materials #266

merged 35 commits into from
Jan 19, 2024

Conversation

Helco
Copy link
Owner

@Helco Helco commented Jan 7, 2024

We finally switch to another shader system where variants can be more easily defined, even if we have to write the shader language first.

This PR will be mostly a rework, replacing the old, pure GLSL shaders with a Mlang based approach. To further test it out the envmap materials should be implemented.

CI will fail as the native shaderc library currently cannot be loaded on Linux.

A rough roadmap necessary for merging:

Mlang/MlangMaterial features

  • Block names
  • Shader Option Mask (and related deduplication)
  • (Postponed) Merged attribute layouts
  • Attribute mapping by name
  • (Maybe) Generic Mesh class with better instancing support

Places to integrate (and therefore testing)

  • ModelViewer
  • ActorViewer
  • WorldViewer
  • SceneEditor
  • ActorRenderer
  • WorldRenderer
  • ModelRenderer
  • ECSExplorer
  • EffectEditor
  • ParticleBehaviourModel
  • UI batcher
  • Debug renderers
    • Skeleton
    • Lines
    • TriangleLine
    • OctahedronLine
    • HexahedronLine
    • BoxLine
    • DiamondSphereLine
    • Grid
    • Plane
    • Icon

Postponed components (create issue on merge)

  • zzmaps
  • SparkMaterial
  • EffectMaterial

Fixes #267

@Helco Helco marked this pull request as ready for review January 19, 2024 20:25
This was referenced Jan 19, 2024
@Helco Helco merged commit acffcd9 into master Jan 19, 2024
2 checks passed
@Helco Helco deleted the mlang branch January 19, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArgumentOutOfRangeException in WorldViewer due to intersection rendering
1 participant