• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Expose color parameter without alpha?

Community Beginner ,
Aug 05, 2022 Aug 05, 2022

Copy link to clipboard

Copied

How can i expose color parameter without alpha?

TOPICS
How to

Views

253

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 05, 2022 Aug 05, 2022

Hi

What you have to do is change the four inputs to three and replace the fourth (alpha) with a constant value set to 1

Follow these steps:

1. Expose the uniform color node parameters as normal

2. Go to the graph input parameters and change Type/Editor from Float 4 to Float 3. Also change the input box next to it from slider to Color(RGB)

3. Go back to the uniform Color node and edit the function graph

4. Replace the single Get Float4 node with the function nodes below. This sets alpha to 1. Don

...

Votes

Translate

Translate
Community Expert ,
Aug 05, 2022 Aug 05, 2022

Copy link to clipboard

Copied

Hi

What you have to do is change the four inputs to three and replace the fourth (alpha) with a constant value set to 1

Follow these steps:

1. Expose the uniform color node parameters as normal

2. Go to the graph input parameters and change Type/Editor from Float 4 to Float 3. Also change the input box next to it from slider to Color(RGB)

3. Go back to the uniform Color node and edit the function graph

4. Replace the single Get Float4 node with the function nodes below. This sets alpha to 1. Don't forget to right click and set the Vector Float 4 as the output node.

davescm_0-1659717569351.png

 

 

 

That's it.

 

Dave

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 05, 2022 Aug 05, 2022

Copy link to clipboard

Copied

Thank you so much!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 05, 2022 Aug 05, 2022

Copy link to clipboard

Copied

LATEST

You're welcome .

Note I just edited my post and added a step under '2' to change from 'Slider' to 'Color(RGB)' input. I omitted that in my first reply.

 

Dave

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines