Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Set texture sampler state in custom effect

$
0
0

@GeonBit wrote:

If I have a custom effect that define a texture sampler like this:

sampler2D MainTextureSampler = sampler_state {
	Texture = (MainTexture);
	MinFilter = Linear;
	MagFilter = Linear;
	AddressU = Clamp;
	AddressV = Clamp;
};

How can I change the MinFilter / MagFilter / AddressU / AddressV params from C# code? I looked at all the options of SetValue() of shader parameters and didn't find anything that match sampler state.

Thanks!

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles