LlScaleTexture/ja

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

要約

関数: llScaleTexture( float u, float v, integer face );

選択された face にテクスチャの uv の大きさを設定します。

• float u
• float v
• integer face 番号もしくは ALL_SIDES

faceALL_SIDES であれば関数は全ての面に作用します。

仕様

標準のテクスチャ・マッピングモードでは、スケールユニットは面ごとに繰り返します。平面テクスチャマッピングモードでは、スケールユニットは 1/2 メートルごとに繰り返します。これは、平面テクスチャのスケールユニットはメートル毎に繰り返す、インワールドの編集ツールと対照的です。

警告

  • この関数は 0.2 秒間、スクリプトを停止します。
  • face が存在しない面を指している場合、関数はエラーを出さずに復帰します。
All Issues ~ Search JIRA for related Bugs

サンプル

//6 つの面のテクスチャを拡大縮小します
float scale;
default
{
    state_entry()
    {
        integer i;
        
        for( i = 1; i < 7; i++ )
        {
            scale = scale + .1;
            llScaleTexture( (float)scale, (float)scale, i);
        }
    }
}

関連項目

関数

•  llGetTextureScale

特記事項

Search JIRA for related Issues

Signature

function void llScaleTexture( float u, float v, integer face );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。