Questions tagged [shaders]

A shader is a computer program that usually runs on a GPU and is used to do shading, texturing, special effects or post-processing. Shader nodes specifically refer to the nodes used to create shaders for Cycles, but this tag can be used for other shaders as well.

478 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
1k views

Does a model exporter embedding materials as GLSL scripts exist?

as described in Blender Shader in OpenGL/GLSL, it is possible to export the (unoptimized) GLSL code generated by Blender for a given material. Since the viewport can use such GLSL for real-time ...
4
votes
0answers
46 views

Shading according to velocity

I have a rigid body simulation of many objects and would like to change how they're shaded depending on velocity. It's easy to get location from object info node, but how about change in location ...
4
votes
0answers
2k views

nVidia skin shader with the Principled BSDF

I've been using a skin shader primarily based on the Brecht skin shader, which is itself based on the Sum-of-Gaussians approach as seen in 14.4.7 from GPU Gems by nVidia. Its Cycles adaptation, which ...
4
votes
0answers
89 views

GameEngine: KX_BlenderMaterial vs KX_PolygonMaterial

I have a question about the material types in the game-engine. e.g.: 2.66 Blender API - KX_PolyProxy(SCA_IObject) 2.66 Blender API - name ~ The material of the polygon. When is the material a ...
3
votes
0answers
329 views

How does a shader detect if two objects overlap

I saw this shader (https://www.youtube.com/watch?v=L2Du5F7PfQM - an animated procedural water toon shader) . It says (in it's blender market page - https://www.blendermarket.com/products/pure-toon-...
3
votes
0answers
59 views

Jagged edges using a toon shader and Evee

I am trying to create a cartoon style render using evee with light reflections on the material (wich is suposed to be metal). I tried everything like subdividing, auto smooth, changing shadow ...
3
votes
0answers
41 views

Possible to give a shadow a different material?

Hello. Let say that in a this image, i'd like all shadows to be rendered as an red emissive material, is this possible in render ? procedurally, witouth any modifiers, just by the shader editor ?
3
votes
0answers
48 views

texture mapping without texture being mirrored on other side of object

I have a cylinder I want to map a texture to. To specify the location of the texture I use an empty. In the material node editor I then use the object function of the texture coordinate node and ...
3
votes
0answers
60 views

How to externally control the look of volume material?

The effect that I want to achive looks like this: The problem I have is with that colorful cube with controllable color gradient. The cones and planes can be ingnored. I have achived similar result ...
3
votes
0answers
166 views

Procedural Materials On Fluid Simulations

Been struggling with this for a while. I've made a procedural lava shader and I want to put it on a fluid sim. The problem is, all the mapping methods I've tried make the fluid travel through noise ...
3
votes
0answers
2k views

How to see the shader preview?

In shader editor , how can i see the preview of the shader or any nodes without it's being applied to objects ? something like 'viewer' node in compositing editor. Right now if i have lot of 'image ...
3
votes
0answers
122 views

First attempts with SSS - where is the nose?

I am trying to make the skin for my female mesh and watched some tutorials on Skin Shaders. I tried to rebuild YanSculpts Tutorial https://www.youtube.com/watch?v=ktsyL2Kp5bQ&t=388s and the result ...
3
votes
0answers
502 views

I want to convert my Diffuse Shaders to Principled Shaders

I just barely imported a scene from an .obj file, but all 83 materials defaulted to Diffuse Shaders of various colors. To make for a faster workflow, could I use a python script of some sort to ...
3
votes
0answers
62 views

What is the significance of the value of the limit on the roughness attribute of the Oren Nayar shader?

In exploring the settings of the Oren Nayar shader in the Blender internal rendering engine, I find that there is an upper limit of 3.14 for roughness. Is this the constant Pi? Why is this the ...
3
votes
0answers
547 views

How to set up SSS on cycles for efficient rendering

How do I set up SSS shaders properly to render efficiently in animation projects. Are there any specific optimizations to consider? I am trying to render some orange juice in a bottle and getting ...
3
votes
0answers
217 views

Material Mode in Shading Panel

I have this version of Blender What is the difference between the two Material modes in the Shading panel ? On my PC GLSL seems to work, instead Multitexture seems doesn't work.
3
votes
0answers
492 views

OSL: Giving the texture method a color instead of string

Is there a way to give the OSL method texture(string, float, float, ...) a color input instead of the string which reads an image file? Or is there any type of ...
3
votes
2answers
1k views

Is there a way to manually control vertex/face normals to get a more consistent toon shader?

I watched this video about the art style of popular fighting game Guilty Gear Xrd, and something which really interested me was the method that the artists used to get rid of ugly automatic-normal ...
2
votes
1answer
20 views

How to create a feathered border around an object?

This is the best way I could possibly phrase this question. What I want to do is mix two different materials. I want to use the secondary material to catch the rimlight of the object, but I only ...
2
votes
0answers
38 views

Transparency showing as black on a mix shader (multiple image textures)

First time here, still pretty new to Blender. I have an object that I've applied an image texture to. The object is a can with a label that wraps around 90% of it. The object's "label" texture ...
2
votes
2answers
34 views

Why is my color map gradient (by node xyz value) working for x and y but not z?

very new to blender and not an expert. Coming from engineering field and want to learn more about rendering CFD/model results in Blender. Right now I am struggling with adding a coloramp to a surface....
2
votes
0answers
20 views

Save just the Material part of a .blend file

Can you just save parts of a .blend file? And link them in later? thanks
2
votes
0answers
41 views

OSL: HalfVector Question

EDIT: I pasted a copy of the code for convenience. I have a question about the halfway vector between the camera and light vectors giving odd results in my shader. I included screenshots of my OSL ...
2
votes
1answer
67 views

Create and save preset nodes in the 2.81 blender, for example for material and texture

I would like to ask you how you can save settings related for example to texture materials and various procedures carried out with nodes in the shading editor in order to always find them ready for ...
2
votes
0answers
40 views

How can I simplify this triplanar material so that I only need to feed my texture into one slot instead of three?

I found a setup for a tri-planar shader online and it gives good results for me so I quite like it. But every time I want to swap the texture I have to swap it for each of the texture nodes. That ...
2
votes
0answers
60 views

How to convert a world generated Texture Coordinate into Object Texture Coordinate

In the material shader editor, one can use a Texture Coordinate from the Input, like generated, UV, object, etc. For example the object texture coordinate,the main benefit is that it will allow you ...
2
votes
0answers
47 views

Unwrapping doesn't follow UV editor

Oh, mighty Blender elders. I'd like to know if this is a bug, or intended behavior. What is going on I have three textures with different aspect ratios. 1:1, 2:1, 3:1. But when unwrapping, the ...
2
votes
0answers
59 views

My render doesn't look like my shading tab

I want to render this scene (white walls, white reflective floor, wooden table, HDRI background) but it doesn't want to render like I made it. Can anyone help please?
2
votes
0answers
36 views

Image Texturing - Using cycle's nodes to scale image texture and randomly rotate them

Is there a way to randomly rotate an image texture randomly and keep its mapping scalable? Im sure this has already been asked but can't seem to find it. If someone can redirect me to the appropriate ...
2
votes
0answers
61 views

Why Transparent BSDF blocks reflections of Principled BSDF? (Cycles)

I wanted to share an issue related to Cycles shaders I don't really know how to face. I am rendering a honey pot. Nothing crazy about this. But when I tried to add the sticker I noticed some ...
2
votes
0answers
130 views

How is it possible to make a procedural snakeskin texture?

I've seen some posts like this one showing snakeskin procedural textures. How is this possible? From what I've gleamed on reddit, a voronoi texture is used here? How would you morph that texture into ...
2
votes
0answers
125 views

Toon Shader Programming/Noise Generation/Line Coloring

EDIT: A LOT OF IMPROVEMENTS The file: The output will look something like this (but in color): (Mickey & the ship's wheel are cel objects, and the ship & grass are background objects) CEL ...
2
votes
0answers
226 views

Python Mix Shader Diffuse BSDF Glossy BSDF Nodes

I am trying to create a plane object in python that uses a mix shader with the first shader being a Diffuse BSDF Shader, color black, roughness 0.200 and the second shader being a Glossy BSDF shader, ...
2
votes
0answers
33 views

How to get gradient material to work with rig?

I've got a lil character i'm making that uses some gradient materials, but I don't know how to make the gradient move with the deformations. as you can see, the gradient doesn't move with the ...
2
votes
1answer
82 views

Add a transparent image on top of a material [duplicate 2]

I read the answer on the link on how to add transparent images on top of materials (Add a transparent image on top of a material ). This works beautifully in v2.79b. This technique does not seem to ...
2
votes
0answers
68 views

Dynamic paint waves: How do I change color of

I'm new to blender and love the dynamic paint waves function. I'm wondering if anyone knows how to change the color of a material based on movement of the ripples simulated on the canvas layer. sort ...
2
votes
0answers
199 views

Cycles Light Linking: Getting hard shadows on a single object, and soft shadows on another

As the title states, I'm trying to get one object to take hard shadows from a very small Area, Sun, or point light, while in the same scene as another object which will take soft shadows from a very ...
2
votes
0answers
169 views

Smooth shading faceted when using bump/normal

I noticed smooth round surfaces get faceted when I apply normal/bump map onto them, without normal/bump they are smooth. Does any one have a solution for this besides increasing subdivision? 1. ...
2
votes
0answers
279 views

Occlusion material (holdout) in Cycles

I am looking for a way to occlude one cycle´s material against another like when we setup the render passes from the passes property for the scene in a "holdout" mode. Think 2 spheres over a plane. ...
2
votes
0answers
85 views

Real World Roughness Samples in Blender

TLDR: We've developed a method to measure a surface's microfacet distribution, and are looking for a way to integrate this in a Cycles shader. For more info, see this paper. Hi all, Together with a ...
2
votes
1answer
343 views

Can I only Render light that psses through an object?

In the image below I would like only the light that passes through the sphere, in this case the bright dot in the center, to be visible. Is there a way to set this up in cycles? Thanks, Tyler
2
votes
0answers
177 views

Faking HDRi Reflections with an orthographic camera

Is it possible to fake perspective reflections of a HRDi in a scene with an orthographic camera? As reflection rays are parallel on flat surfaces, every face of a glossy object has a uniform color ...
2
votes
0answers
398 views

OSL: Parallax Occlusion Mapping

I just want to know if this osl file, for a 3ds max, works in blender cycle. link: http://www.racoon-artworks.de/?p=773 osl:http://www.racoon-artworks.de/DownloadableScripts/...
2
votes
0answers
108 views

Scene lighting and setup: how would you get such a render?

Just for fun, i'm trying to recreate a scene from the (nice) movie Cherry 2000. Here's a link to the clip. I like the aesthetic, but I can't figure out how they did setup their scene; and that's ...
2
votes
0answers
393 views

Normal Map difference in blender and other soft

I created a low poly object, and a high poly object (beveled). We bake the normal map in Blender. When displayed in Blender it works well, but in other programs (3ds Max / Substance Painter) the low ...
2
votes
0answers
487 views

Using the output of the shader as a masking factor in the cycles?

I use the output of the material(shader) as a masking factor in the Blender Internal renderer. I tried to do the same in Cycles but it didn't work. Is it possible to use only texture or input nodes ...
2
votes
0answers
93 views

Script node to affect photons on cycles?

To my understanding, cycles works by simulating photons. I would like to create a custom shader to put on the inside of a sphere that takes any photon that hits it and moves it to the opposite point ...
2
votes
0answers
1k views

How does “distance” effect ambient occlusion?

In Blender Cycles, there is a distance option for Ambient Occlusion in the World tab. How does the distance option affect AO? What does moving the distance closer to zero do? What does increasing ...
2
votes
0answers
330 views

How do I set a material in renderman to use a specific UV map?

My model has 4 separate UV maps for the head, arms/hands, legs/feet, and body. But i can't find a UV map node equivalent in Renderman. After converting the node setup to Renderman, it doesn't have a ...
2
votes
0answers
102 views

Is it possible to determine emission shader value by other lights?

Is it possible to take a lamp/sun/point light and use it as a value on the scene to tell materials that are not affected by the light source to emit their own light? This is photoshopped example of ...

1
2 3 4 5
10