flaw-visual-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Visual.Texture

Description

 
Synopsis

Documentation

data PackedTexture Source #

Instances
Generic PackedTexture Source # 
Instance details

Defined in Flaw.Visual.Texture.Internal

Associated Types

type Rep PackedTexture :: Type -> Type #

Serialize PackedTexture Source # 
Instance details

Defined in Flaw.Visual.Texture.Internal

type Rep PackedTexture Source # 
Instance details

Defined in Flaw.Visual.Texture.Internal

type Rep PackedTexture = D1 (MetaData "PackedTexture" "Flaw.Visual.Texture.Internal" "flaw-visual-0.1.0.0-GEzxBFj9QBv1go1Jw4RpbA" False) (C1 (MetaCons "PackedTexture" PrefixI True) (S1 (MetaSel (Just "packedTextureBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ByteString) :*: S1 (MetaSel (Just "packedTextureInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TextureInfo)))

convertTextureToLinearRG :: PackedTexture -> PackedTexture Source #

Convert texture from whatever format to linear RG. Useful for normal map textures. Actual standard->linear conversion is not happening, it's presumed that texture data is in linear space already.