Browse Source

新增了关于贴图、相机、灯光、体积材质的类文件,“scene.php”添加addobject()函数,解决模型、材质、贴图自对应问题

master
yuanjiajia 3 years ago
parent
commit
2abbaf7a21
  1. 1
      src/scene/Scene.php

1
src/scene/Scene.php

@ -75,6 +75,7 @@ class Scene extends BaseCfg
} }
else; else;
foreach( $attributeArr as $key => $value) foreach( $attributeArr as $key => $value)
{ {
if( $value instanceof texture\TextureBase || $value instanceof materials\MaterialsBase || $value instanceof volumes\VolumesBase ) if( $value instanceof texture\TextureBase || $value instanceof materials\MaterialsBase || $value instanceof volumes\VolumesBase )

Loading…
Cancel
Save