diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-19 03:02:52 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-19 04:17:01 +0300 |
commit | 3e2017491ae62ed1b6436484b227ef7542f599aa (patch) | |
tree | f951f2b9e8a866ef64115f11cc5c1d9b035dd699 /source/blender/draw/engines/eevee_next/eevee_material.hh | |
parent | 30e666f747bae89d50029cbcc505ffa9a12ab05e (diff) |
Cleanup: spelling in comments & move doc-strings to headers
Diffstat (limited to 'source/blender/draw/engines/eevee_next/eevee_material.hh')
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_material.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_material.hh b/source/blender/draw/engines/eevee_next/eevee_material.hh index bdf9b7824c5..23165a741b9 100644 --- a/source/blender/draw/engines/eevee_next/eevee_material.hh +++ b/source/blender/draw/engines/eevee_next/eevee_material.hh @@ -191,6 +191,7 @@ class DefaultSurfaceNodeTree { DefaultSurfaceNodeTree(); ~DefaultSurfaceNodeTree(); + /** Configure a default node-tree with the given material. */ bNodeTree *nodetree_get(::Material *ma); }; @@ -242,7 +243,14 @@ class MaterialModule { void begin_sync(); + /** + * Returned Material references are valid until the next call to this function or material_get(). + */ MaterialArray &material_array_get(Object *ob, bool has_motion); + /** + * Returned Material references are valid until the next call to this function or + * material_array_get(). + */ Material &material_get(Object *ob, bool has_motion, int mat_nr, eMaterialGeometry geometry_type); private: @@ -250,6 +258,7 @@ class MaterialModule { eMaterialGeometry geometry_type, bool has_motion); + /** Return correct material or empty default material if slot is empty. */ ::Material *material_from_slot(Object *ob, int slot); MaterialPass material_pass_get(::Material *blender_mat, eMaterialPipeline pipeline_type, |