Jump to content

Diffuse vs Specular


Recommended Posts

I'm finally making some progress in (re)learning modelling and texturing, but I'm scratching my head on a few things. One being, when to use a diffuse texture or a specular texture, or more specifically what's the difference in terms of HD footprint and CPU/RAM/GPU performance. Is there a performance benefit of diffuse over specular?

Link to comment
Share on other sites

A diffuse texture is the visible (RGB) texture of a part, the specular is (usually) just a layer on the image (the alpha layer in this case) which specifies which areas of the base (diffuse) texture are shiny.

So a 'plain' diffuse texture is RGB, and a diffuse+specular texture is RGB(A)

A part which is matte (i.e. not shiny or reflective at all) could just have a diffuse texture (and it's mesh renderer attribute for shader type in Unity would /KSP/Diffuse and the texture would be an RGB image)

A part which is shiny (i.e. a polished or finished surface) could just have a diffuse+specular texture (and it's mesh renderer attribute for shader type in Unity would /KSP/Specular and the texture would be an RGB(A) image)

Cost wise, specular textures are bigger because they're four layers instead of three for plain diffuse. Performance wise specular parts probably cost more to render but unless your video card is a potato I would assume this cost to be almost insignificant?

Edited by NoMrBond
Accidentally a letter
Link to comment
Share on other sites

Cost wise, specular textures are bigger because they're four layers instead of three for plain diffuse. Performance wise specular parts probably cost more to render but unless your video card is a potato I would assume this cost to be almost insignificant?

I'm guessing it's dependent on just how many specular textures and light sources are on screen at any given time. Thanks NoMrBond, I'm feeling like I'm on track with texturing even more now.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...