Skip to content

D3D9 Vertex Shaders #1

Open
Open
@Scharps

Description

@Scharps

Hello there,

Firstly, thank you for creating this guide. It's very hard to find information on D3D9 that's digestible by beginners.

I'm having difficulty with getting my vertex shader to transform my vertices. No matter what operation I perform, the vertex shader doesn't appear to be effected.

float4 vs_main(float4 position : POSITION) : POSITION
{
    float4 output = float4(position.x * 2, position.y * 2, 0.5f, 1.0f);
    return output;
}

I've read on FVF definitions, and ProcessVertices but I'm not sure how they should be used, if at all in this use case. Also, since I'm using Silk.NET (C# libraries providing bindings for graphics development), the definitions of FVFs aren't available.

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