[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Search] [Home]
Board
Settings Home
/3/ - 3DCG


Thread archived.
You cannot reply anymore.



File: 586476584.jpg (256 KB, 800x600)
256 KB
256 KB JPG
What is a shader and is there a precise definition?
I see some people use it interchangably with materials and even sometimes textures while others don't.
This happens across the industry in all fields of 3d.
What the fuck is going on?
>>
>>678387
normal people
>a programmed function for shading(calculating light) things in a certain way
retards
>a shiny ball wtih texture XDD
>>
File: 1484507221501.png (27 KB, 477x387)
27 KB
27 KB PNG
>>678387
A shader is the thing that you plug your texture maps into and possesses the properties (often physically correct) of the material you want to represent in your 3D scene.

For instance: metal, dielectric (plastic, wood, etc.), glass, skin, etc.

It's the thing that defines the surface of a mesh once the renderer calculates how the lights hit it and whatnot.

One thing is for sure, shader =/= textures

AMA if it's still not clear
>>
File: 5454.jpg (212 KB, 800x600)
212 KB
212 KB JPG
>>678390
Thank you for clearing this up.
>>678391
Wait, what you just described is a material.
>>
>>678395
shader (properties) + textures (visual info) = material
>>
File: xyfkfxyk.png (256 KB, 640x480)
256 KB
256 KB PNG
>>678399
Much appreciated.
>>
>>678402
anytime m8
>>
>>678390
Well it's not always light. Even VLC filters are shaders. A shader is a program composed of a vertex program and/or a fragment program and/or a geometry program and/or a tessellation program. You basically control what happens between things using the GPU. It's could be moving vertices, could be how light is calculated, could be a implementation height maps, could be a screen filter, etc. You're essentially controlling how things are rendered on a screen. Vertex programs, for example, control how things work between vertices. The space between verts is interpolated. Easiest(but not the only, obviously) example is Gouraud shading(https://en.wikipedia.org/wiki/Gouraud_shading). Look at the specular. While fragment programs run a program for each fragment on the screen, which gives you phong or blinn-phong for example. Geometry program controls/creates geometry, Same for the Tessellation program. Again, you could make wind, weird moving blobs, or nightvision with shaders- they're not just for materials.
For example, this- https://www.youtube.com/watch?v=qKN1_dxtxUE is all shader. Doesn't have any animations or whatever, everything's basically procedural.
>>
>>678968
shit link* https://en.wikipedia.org/wiki/Gouraud_shading



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.