mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-01 16:05:35 +01:00
fix(tools): water keeps its large param_specular as the glint of the sun on its fixed mirror and is only reported as information; the norm says which files are checked, that textures without a material go on their diffuse alone, and that diffuse, specgloss and normal maps all become BC7 made from the TGA
This commit is contained in:
@@ -253,7 +253,9 @@ def check(mat, values, nested, shaders, resolver, images, rel):
|
||||
|
||||
if ps is None and shader['spec'] != 'none':
|
||||
add(INFO, 'param_specular nie ustawiony, bierze jasnosc specular submodelu z e3d/t3d')
|
||||
if ps is not None and ps > PARAM_SPECULAR_MAX:
|
||||
if ps is not None and ps > PARAM_SPECULAR_MAX and shadername.lower().startswith('water'):
|
||||
add(INFO, 'param_specular %g w shaderze %s: odblask slonca na lustrze wody, poza norma' % (ps, shadername))
|
||||
elif ps is not None and ps > PARAM_SPECULAR_MAX:
|
||||
add(ERROR if ps > 2 * PARAM_SPECULAR_MAX else WARN,
|
||||
'param_specular %g mnozy polysk %gx (norma 1, sile niesie R; w starszych shaderach rozjasnia tez w reflektorach)' % (ps, ps))
|
||||
psv = ps if ps is not None else 1.0
|
||||
|
||||
Reference in New Issue
Block a user