Explained: dif.spec.amod.dif.spec shader

SCS Software ATS and ETS2 editing using ZModeler3 filter. Models, Materials, Animation.

Moderator: Oleg

Post Reply
User avatar
Oleg
Site Admin
Posts: 14044
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Explained: dif.spec.amod.dif.spec shader

Post by Oleg »

In filter update on July 25th, the new shader import/export support was added:
dif.spec.amod.dif.spec

This shader allows to apply overlay texture using additional opacity/transparency texture over the main texture. The main texture (and optionally a bump-map) uses UV#1. The overlay texture (and it's mask-texture) both use UV#2. The overlay texture is placed in DETAIL2 texture slot and it should be "Affected by MASK.R".

The opacity/transparency texture is placed in MASKMAP texture slot (and UV#2 is assigned). Additionally, opacity texture is "Affected by VertexColor.Alpha". Thus, you can additionally control visibility of second/overlay with per-vertex alpha. E.g. paint per-vertex alpha to white will make overlay texture stronger, painting to black will fade out the overlay texture to invisible.
dif.spec.amod.dif.spec.jpg
The shader with .iamod overlay texture seems to be using the same technique, but uses inverted alpha (i.a.modulation). In materials browser properties this is set as Affected by: -> Vertices Color, 1-A.
LeynerN31
Posts: 71
Joined: Thu Jan 27, 2022 6:05 pm

Re: Explained: dif.spec.amod.dif.spec shader

Post by LeynerN31 »

Do you have an example applicable to trucks?
User avatar
Oleg
Site Admin
Posts: 14044
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Explained: dif.spec.amod.dif.spec shader

Post by Oleg »

This is generally for scenery objects, as this shader does not support "paint" extension and can't be painted to truck color.
Post Reply