MCPcopy Index your code
hub / github.com/g3n/engine / parseMapKd

Method parseMapKd

loader/obj/obj.go:916–923  ·  view source on GitHub ↗

Parses color texture linked to the diffuse reflectivity of the material map_Kd [-options]

(fields []string)

Source from the content-addressed store, hash-verified

914// Parses color texture linked to the diffuse reflectivity of the material
915// map_Kd [-options] <filename>
916func (dec *Decoder) parseMapKd(fields []string) error {
917
918 if len(fields) < 1 {
919 return dec.formatError("No fields")
920 }
921 dec.matCurrent.MapKd = fields[0]
922 return nil
923}
924
925func (dec *Decoder) formatError(msg string) error {
926

Callers 1

parseMtlLineMethod · 0.95

Calls 1

formatErrorMethod · 0.95

Tested by

no test coverage detected