Skip to content

HLSL shader compiles, but displays as black #13

Closed
@KevinCain

Description

@KevinCain

I've successfully translated several shaders via @smkplus' ShaderMan (in Unity, and via your web app).

However, in the attached example this shader compiled with a simple fix (see below), but the resulting compiled shader displays as black in Unity 5.6.x.

If the community has any suggestions I'd love to understand.

The only change I made from the ShaderMan output is this simple adaptation below:

	float3 rd = normalize(camera(ro, la)*vec3(uv, 1.97));

I replaced the explicit multiplication with the mul() method:
float3 rd = normalize(mul(camera(ro, la), vec3(uv, 1.97)) );

Thanks again for a great tool!

server.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions