NokFrt
June 7, 2023, 11:32am
1
How to apply texture with “skin/tattoo”? Is there a way how to do it with Material (one basic diffuse texture and one with tattoo in some other channel)? Or do I have to create a new texture by myself and then use this texture as a diffuse texture for the Material?
You can use detail map, but for this you’d need to configure it using scripts.
playcanvas:master
← aidinabedi:feature/secondary-detail-maps
opened 07:14PM - 04 Apr 20 UTC
Fixes #1962
PR includes adds the following properties to `pc.StandardMaterial… ` with full documentation:
- `diffuseDetailMap` (texture)
- `diffuseDetailMapChannel` ("rgb", "r", "g", "b", "a")
- `diffuseDetailMapUv` (number)
- `diffuseDetailMapTiling` (vec2)
- `diffuseDetailMapOffset` (vec2)
- `diffuseDetailMode` (`pc.DETAILMODE_*`)
- `normalDetailMap` (texture)
- `normalDetailMapTiling` (vec2)
- `normalDetailMapOffset` (vec2)
- `normalDetailMapUv` (number)
- `normalDetailMapBumpiness` (number)
----
All changes have been tested using a [public PlayCanvas project](https://playcanvas.com/project/671513/overview/detail-maps-test) (simply run it with and without the PR):
### With PR:
![image](https://user-images.githubusercontent.com/255073/78459425-1ca7ae80-76b9-11ea-881a-c700c794284c.png)
### Without PR:
![image](https://user-images.githubusercontent.com/255073/78459429-1fa29f00-76b9-11ea-9ad8-2d35db79bbae.png)
I confirm I have signed the [Contributor License Agreement](https://docs.google.com/a/playcanvas.com/forms/d/1Ih69zQfJG-QDLIEpHr6CsaAs6fPORNOVnMv5nuo0cjk/viewform).
1 Like