Skip to content

Hlsl shader, texture is sampled in custom functions, breakpoint values are correct, display is black? #340

@TCongX

Description

@TCongX

float3 spherical_texturing(in float3 normal, Texture2D Tex,SamplerState samp, in float delta)
{
float u = atan2(normal.z, normal.x) / PI * 2.0 + delta;
float v = asin(normal.y) / PI * 2.0;

float3 Color = Tex.Sample(samp, float2(u, v)).xyz;
return Color;

}

Image

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