Jump to content

Creating new material, custom parameters don't show.


photo

Recommended Posts

Hi,

I'm trying to create a custom post-processing material, but although it works, the parameters tab in the ide remains blank. I've tried reloading but to no avail.

here is the material.

<?xml version="1.0" encoding="utf-8"?>
<base_material version="2.0" name="titleblur_post" editable="0">

	<!-- Post-effect shaders -->
	<shader pass="post"
		defines="BASE_POST"
		vertex="shaders/pp/vertex/blurTitle.vert"
		fragment="shaders/pp/frag/blurTitle.frag"/>
	
	<!-- Textures -->
	<texture name="color" pass="post" unit="0" type="procedural"/>
	
	<!-- Parameters -->
	<parameter name="grayscale_power" type="slider" shared="1" min="0.0" max="1.0"
	flags="max_expand">0.5</parameter>
	
</base_material>

grayscale_power being the one that won't show.

Link to comment

And the material/shaders are working aside from that. I changed the output to the simple fragment shader and it make the picture more dim as it should. Just cannot seem to get parameters to display.

Link to comment

Dear Antony,

1. Which Version are you using?

2. Are you just taking it from Documentation? For Yes;  Documentation needs a little update.

I am using 2.10 and when I change the parameter to 

<!-- Parameters -->
<slider name="grayscale_power" min="0.0" max="1.0" max_expand="1" shared="1">0.5</slider>

It shows.

I suggest to look for other base materials straight away for comparison. Because code is updated but sometimes Documentation lags in terms of time.

I hope it will solve your issue.

Regards,

Rohit

Link to comment
×
×
  • Create New...