Skip to content

It is not possible to apply a shader to the vehiclegrunge256 texture after the latest update. #3894

@ZbyK77

Description

@ZbyK77

Describe the bug

After the latest update (probably “Fix setVehicleDirtLevel (#3837)” r22823), it is no longer possible to apply shaders to the vehiclegrunge256 texture.
This blocks many opportunities for shader use.

Steps to reproduce

  1. Run example code (Based on shader_tex_names)
    shader = dxCreateShader([[ float4 GetColor() { return float4( 1,0,1, 1 ); } technique tec0 { pass P0 { MaterialEmissive = GetColor(); } } ]]) engineApplyShaderToWorldTexture(shader,"vehiclegrunge*")
  2. Compare the results in the release after 22823 and before 22823.

Version

Client: Multi Theft Auto v1.6-release-22829 (>22823)
Server: -

Additional context

r22789
Image

r22829
Image

Relevant log output

-

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions