[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Public WebGL] Flat shading without vertex duplication?
- To: public_webgl@khronos.org
- Subject: [Public WebGL] Flat shading without vertex duplication?
- From: Shy Shalom <shooshx@gmail.com>
- Date: Mon, 31 Jan 2011 16:03:25 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=a4gD1n80CxjX62xS3CmshM6Lz+7F3Eq3a37VbpFBRig=; b=ajbYvDMq1hjWenZLy3PFzUV2Br4+ULZ3GAI04yNVd4CMBi49BWVrvE6mkXmpBfHzl8 NewILnwpHjNi40/v76yDBCC2TAxmdbsunKgvFfUHuPAGZRsC3Up5ZDN9EM5fxA0giTFR Xuej+GXuX9YgJDMdoJ+oSzFkgareuLXEOC2cg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=KQI72ZgfDfYe3+gpKkJRrOcnyqPK5H9p3nOTEfM2kDwDe3sC2PEIXHKT7b85cO+7G9 uzXAG223vx6oq8ic85MH4DModGqNAS43D4AKDPXRTw7kv0NSBnUfRMWoOWV6UkG9lidX duxzVFVxYxLkMDfL6E1HUkh1i1kjpRS3CKU5s=
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- Sender: owner-public_webgl@khronos.org
Hello list!
This is probably not the best place for this question so I apologize in advance.
Is there a way in WebGL (and OpenGL ES) to do Flat shading without sending all vertices for every triangle?
>From what I managed to find, people do this either with dFdx,dFdy which are not available or with "flat" varying which is only a GLSL 1.3 thing.
I have a rather big model I would really prefer to avoid duplicating every vertex for every triangle.