Code Monkey home page Code Monkey logo

Comments (9)

Zylann avatar Zylann commented on June 2, 2024

The shader in this plugin does not assign metallic... not sure why you get this difference. I assumed metallic defaulted to 0 in this case.
Which shader are you using?

If you want to choose metallic, you have to edit the end of the shader you are using. But look:

image

If I set METALLIC to 0, the result is the same:
image

If I set it to 1, it barely changes either:
image

If I force roughness to be 0.0 instead it gets like this:
image
But that's obviously not what you want as there are still highlights because surface is, well, "not rough".

However you could try to change SPECULAR instead, which apparently defaults to 0.5 otherwise:
image

from godot_heightmap_plugin.

NoTitleGamesOfficial avatar NoTitleGamesOfficial commented on June 2, 2024

I'm using Classic4Lite.

Your last image is the result I would like to have. Do you have some instructions how to get that, I never edited something with Shaders before.

from godot_heightmap_plugin.

Zylann avatar Zylann commented on June 2, 2024

In the inspector, create a New Shader in the Custom Shader property:
image
This will create a copy of the builtin shader you had selected before.

Then switch Shader Type to Custom so it will start using the custom copy.

Then click on the Shader property value:
image

This will open the shader editor, in which you can add the line at the bottom:
image

from godot_heightmap_plugin.

NoTitleGamesOfficial avatar NoTitleGamesOfficial commented on June 2, 2024

I get this error when I add a custom copy:

Bildschirmfoto von 2023-10-15 21-58-46

from godot_heightmap_plugin.

Zylann avatar Zylann commented on June 2, 2024

That was fixed in the master branch of the plugin. Just write the full path:

#include "res://addons/zylann.hterrain/shaders/include/heightmap.gdshaderinc"

from godot_heightmap_plugin.

NoTitleGamesOfficial avatar NoTitleGamesOfficial commented on June 2, 2024

So i got rid of the error, but nothing happens when adding the line? Do I need to somehow reload the terrain?

from godot_heightmap_plugin.

Zylann avatar Zylann commented on June 2, 2024

No, it should just update immediately. Did you set Shader Type to CUSTOM in the inspector?

from godot_heightmap_plugin.

Zylann avatar Zylann commented on June 2, 2024

I exposed specular in built-in shaders in afb412d

from godot_heightmap_plugin.

NoTitleGamesOfficial avatar NoTitleGamesOfficial commented on June 2, 2024

No, it should just update immediately. Did you set Shader Type to CUSTOM in the inspector?

... that did the trick :D
Thank you so much for your help and the great plugin. I'm currently poor but I'll spent you a coffee in the future ;)

from godot_heightmap_plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.