Jump to content

[SOLVED] cannot find material parameter "transparent pow"


photo

Recommended Posts

Hi,  I tried to change the transparent pow of a material. but I used the following command 

but it seems that it cannot find the parameter and throws an error

 

wall_material1->setParameterSlider(wall_material1->findParameter("transparent pow"), 2.0f);

 

but it can find "metalness" using the same command.

Untitled22.png.bfc66b96694c8fdcc8bc6d3657249ac0.png

Link to comment

Hi Lukas,

Please, try to refer to the material parameter with underscore: 

wall_material1->setParameterSlider(wall_material1->findParameter("transparent_pow"), 2.0f);

You can check all the names inside <SDK>data\core\materials\default\mesh\mesh_base.basemat file.

Thanks!

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
  • silent changed the title to [SOLVED] cannot find material parameter "transparent pow"
×
×
  • Create New...